NativeWebSocket icon indicating copy to clipboard operation
NativeWebSocket copied to clipboard

Websockets OnClose doesn't contain the close message

Open Esildor opened this issue 4 years ago • 1 comments

When a websocket closes, they contain a reason for close, additionally they contain a message. Currently this libraries OnClose delegate just emits the reason enum and not a message too.

Esildor avatar Aug 26 '21 13:08 Esildor

It also does not support sending back user-defined status codes during the closing handshake. Instead, NativeWebSocket passes an undefined WebSocketCloseCode to the event listener :(

More about user-defined status codes here: https://www.rfc-editor.org/rfc/rfc6455#section-7.4.2

j1mmie avatar Jan 28 '23 00:01 j1mmie