Discussion about this post

User's avatar
Shreyam Dutta Gupta's avatar

Hey great post. I was curious about this too, and started exploring the network tab. They definitely use websockets. Make sure you click on preserve logs. Open a new tab without opening chatgpt yet, then go to inspect and make sure your preserve logs checkbox is checked. Now open chatgpt. You'll see 3 WS connections.

But you are right on the SSE & one direction communication I guess because that's what confused me lot and started googling and found your article. In the /ws logs, I don't see the stream of token. Not not even on XHR/Fetch. I see a POST request with my questions, I see incoming streaming of tokens on /ws, which didn't have the tokens explicitly. Not even encoded ones! I'm so confused

Expand full comment
Harshit Gangwar's avatar

Hi Theodor.

Loved your blog and explaination.

Can you please do a deep dive into websocket implementation too?

Side note: I am using enteprise chatgpt which is using HTTP/1.1. Here I am still seeing Server side streaming being used, while on personal chatgpt I think they are uisng Websockets with HTTP3. I tried a lot but not able to see the message chunks being received in network tab.

Expand full comment
7 more comments...

No posts