WebSocket

{WebSocket} WebSocket connection accepted by the {WebSocketApp} server Not for manual construction Passed to the on_connect and om_message callbacks Methods: send(ubyte[])

struct WebSocket {
string sid;
WebSocketApp* app;
void* context;
nng_aio* rxaio;
nng_aio* txaio;
nng_aio* connaio;
nng_aio* keepaio;
nng_stream* s;
nng_ws_onconnect onconnect;
nng_ws_onconnect onclose;
nng_ws_onerror onerror;
nng_ws_onmessage onmessage;
nng_iov rxiov;
nng_iov txiov;
nng_mtx* mtx;
ubyte[] rxbuf;
ubyte[] txbuf;
nng_duration keeptm;
nng_duration conntm;
bool closed;
bool joined;
bool ready;
}