Hello reader! Today I have learnt about server-side events and going to discuss it here.

Introduction

Assume you are using ChatGPT and sent a query to the LLM and it's makes you to wait for 5 seconds before printing the entire answer in a one-shot action like loading a webpage instead of the current sequential character printing pattern using streaming responses, will it be surprising, frustrating or at least makes you feel like waiting?

So, to prevent the user from feeling the pain of waiting most LLMs uses the sequential printing method.

Working