ResilientWebSocket

WebSocket resilient to network disconnections.

The actual implementation of Ws imply a throw during a read/write if the connection goes down. Every driver has it's own way of throwing, the actual one it's throwing a plain exception: we try to catch and inspect the exception to detect if the WS was disconnected, reporting that fact in a clear way.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

receiveBinary
ubyte[] receiveBinary(bool strict)
Undocumented in source. Be warned that the author may not have intended to support it.
receiveText
string receiveText(bool strict)
Undocumented in source. Be warned that the author may not have intended to support it.
send
bool send(ubyte[] data)

send data over the websocket. returns true/false if sent or not.

send
bool send(const(char)[] data)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta