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.
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.