vibe.d beta banner
get vibe.d
0.7.30

WebSocket.send - multiple declarations

  • Function WebSocket.send
  • Function WebSocket.send
  • Function WebSocket.send

Function WebSocket.send

Sends a text message.

On the JavaScript side, the text will be available as message.data (type string).

Prototype

void send(
  scope const(char)[] data
);

Throws

WebSocketException if the connection is closed.

Function WebSocket.send

Sends a binary message.

On the JavaScript side, the text will be available as message.data (type Blob).

Prototype

void send(
  ubyte[] data
);

Throws

WebSocketException if the connection is closed.

Function WebSocket.send

Sends a message using an output stream.

Prototype

void send(
  scope void delegate(scope OutgoingWebSocketMessage) sender,
  FrameOpcode frameOpcode = cast(FrameOpcode)1u
);

Throws

WebSocketException if the connection is closed.

Authors

Jan Krüger

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.