socket.io
socket.io copied to clipboard
Expose io state
Just an idea, would it make sense to expose (properly typed) socket.io._readyState?
There should be 3 possible values: 'closed' | 'opening' | 'open'.
That's a good question! For the record, it was simply called readyState in Socket.IO v2.
I'm not against making it public though. Do you have a specific use case for this?