WebSocketMessage.this

this(OpCode opcode, string payload)

Build a WebSocket message.

this(OpCode opcode, ubyte[] payload)

Ditto

this(OpCode opcode, T payload)

Ditto

this(OpCode opcode, T payload)
No documentation available for this declaration.
this(OpCode opcode, T payload)
No documentation available for this declaration.
this(OpCode opcode)

Build an empty message with the given opcode, for the control frames that carry no payload.

Without this overload WebSocketMessage(OpCode.Close) would pick the generic single-argument constructor below and build a binary message carrying the opcode as its payload, instead of a close frame.

this(T payload)

Ditto

this(string payload)

Ditto

this(ubyte[] payload)
No documentation available for this declaration.