how to get WebSocketStream's current state?

how to get WebSocketStream's state like WebSocket.CLOSED WebSocket.OPEN etc
1 Reply
jcayzac
jcayzac5mo ago
You must manage state yourself, based on events you receive and the underlying streams (.readable and .writable).