Orca
A bot framework that is easy to reason about, easy to debug, and easy to use.
|
Public Attributes | |
void(* | on_connect )(void *data, const char *protocols) |
Called upon connection. More... | |
void(* | on_text )(void *data, const char *text, size_t len) |
Reports UTF-8 text messages. More... | |
void(* | on_binary )(void *data, const void *mem, size_t len) |
reports binary data. | |
void(* | on_ping )(void *data, const char *reason, size_t len) |
reports PING. More... | |
void(* | on_pong )(void *data, const char *reason, size_t len) |
reports PONG. | |
void(* | on_close )(void *data, enum ws_close_reason wscode, const char *reason, size_t len) |
reports server closed the connection with the given reason. More... | |
void * | data |
user arbitrary data to be passed around callbacks | |
void(* ws_callbacks::on_close) (void *data, enum ws_close_reason wscode, const char *reason, size_t len) |
reports server closed the connection with the given reason.
Clients should not transmit any more data after the server is closed
void(* ws_callbacks::on_connect) (void *data, const char *protocols) |
Called upon connection.
void(* ws_callbacks::on_ping) (void *data, const char *reason, size_t len) |
reports PING.
void(* ws_callbacks::on_text) (void *data, const char *text, size_t len) |
Reports UTF-8 text messages.