- receiveWebSocketFrame
WebSocketFrame receiveWebSocketFrame(S stream)
Receives a websocket frame from a byte input stream.
- sendWebSocketBinaryFrame
void sendWebSocketBinaryFrame(S stream, ubyte[] bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendWebSocketCloseFrame
void sendWebSocketCloseFrame(S stream, WebSocketCloseStatusCode code, string message)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendWebSocketFrame
void sendWebSocketFrame(S stream, WebSocketFrame frame)
Sends a websocket frame to a byte output stream.
- sendWebSocketPingFrame
void sendWebSocketPingFrame(S stream, ubyte[] payload)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendWebSocketPongFrame
void sendWebSocketPongFrame(S stream, ubyte[] pingPayload)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendWebSocketTextFrame
void sendWebSocketTextFrame(S stream, string text)
Undocumented in source. Be warned that the author may not have intended to support it.
Defines low-level structs and functions for dealing with WebSocket data frame protocol. Usually, you won't need to use these functions and structs directly, since abstractions are provided by the websocket connection and message structs.