Skip to content

WebSocketMessage

1 min read

Import: import system.net;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

WebSocketMessage

A complete WebSocket data message or the peer's closing handshake.

public enum WebSocketMessage

Text

A text message with its payload.

Text(text: string)

Binary

A binary message with its payload.

Binary(bytes: byte[])

Close

A close message with its status code and reason.

Close(code: int, reason: string)