Import std.net.ws.websocket
WebSocketMessage
struct
Public Struct WebSocketMessage Implements Printable
A WebSocket's message: text, which is UTF-8, or bytes.
Examples
Local message = WebSocketMessage(True, "hi".Bytes)
Expect(message.IsText && message.Text == "hi")std/net/ws/websocket.fb, line 49
-
Whether it's text, or bytes.
-
Its bytes: a text message's UTF-8.
-
A message of
bytes, text whenisText. -
Its text: a text message's, or a binary one's bytes as UTF-8, or "" when they aren't.
-
A text message's text, or how many bytes a binary one has.
Report an issue with this page or with FutureBlitz on GitHub.