WebSocket.send

Sends a message using an output stream.

  1. void send(const(char)[] data)
  2. void send(ubyte[] data)
  3. void send(void delegate(scope OutgoingWebSocketMessage) @(safe) sender, FrameOpcode frameOpcode)
    class WebSocket
    @safe scope
    void
    send
    (
    scope void delegate @safe sender
    ,)

Throws

A WebSocketException is thrown if the connection gets closed before or during the transfer of the message.

Meta