The WebSocketListener extends the HttpListener and handles incoming Upgrade: websocket messages.
It adds three events WebSocketClientConnect, WebSocketClientConnected and WebSocketClientDisconnected for incoming websocket connections and a WebSocketMessageReceived MessageHandler.
The listener automatically encodes and decodes WebSocketMessages with the WebSocketEncoder and WebSocketDecoder which are wrapping the HttpMessageEncoder / HttpMessageDecoder.
Implements the websocket protocol base on https://github.com/sta/websocket-sharp.
The
WebSocketListener
extends theHttpListener
and handles incomingUpgrade: websocket
messages. It adds three eventsWebSocketClientConnect
,WebSocketClientConnected
andWebSocketClientDisconnected
for incoming websocket connections and aWebSocketMessageReceived
MessageHandler.The listener automatically encodes and decodes
WebSocketMessage
s with theWebSocketEncoder
andWebSocketDecoder
which are wrapping theHttpMessageEncoder
/HttpMessageDecoder
.The
WebSocketFrame
and its enums are almost identical to https://github.com/sta/websocket-sharp.Closes #7