Open joejune opened 7 years ago
If you use the WebSocket in deferred open mode, readyState returns .connecting before open() is called. The WebSocket hasn't been opened or even provided a URL yet, so it should return .closed in this case.
readyState
.connecting
open()
.closed
If you use the WebSocket in deferred open mode,
readyState
returns.connecting
beforeopen()
is called. The WebSocket hasn't been opened or even provided a URL yet, so it should return.closed
in this case.