WebSockets

Streaming LLM responses with Laravel Reverb

Polling made our chat feel like a fax machine. Here is the WebSocket setup that puts the first token on screen in 300 ms, and the two mistakes that cost me a weekend.

Read more