I get different structures for the messages received in the websocket:
{data: Array, type: "Ping"}
{data: {code: 1000, reason: "Disconnected by client"}, type: "Close"}
"WebSocket protocol error: Connection reset without closing handshake"
The first 2 ones are consistent in that they have a type and a data fields, but the last one is a string. Would it be possible to also return type: "websocket-closed".
I get different structures for the messages received in the websocket:
The first 2 ones are consistent in that they have a
type
and adata
fields, but the last one is a string. Would it be possible to also returntype: "websocket-closed"
.