rendajs / Renda

A modern rendering engine for the web.
https://rendajs.org
MIT License
10 stars 4 forks source link

feat(TypedMessenger): Don't send websocket messages before the connection is open #808

Closed jespertheend closed 10 months ago

jespertheend commented 10 months ago

With this change, initializeWebSocket() buffers messages until the connection is open.

I think you'd basically always want this to be the behaviour, but for some reason you'd want sending to fail when the socket isn't open yet, we could possibly πadd an option to initializeWebSocket() in the future.