add protocol version2
This commit is contained in:
@@ -18,3 +18,10 @@
|
||||
#define WS_SERVER_ADDR "localhost"
|
||||
|
||||
int start_webserver();
|
||||
|
||||
void send_json_error(ws_cli_conn_t client, char *error, const char *detail);
|
||||
void send_json_response(ws_cli_conn_t client, json_object *res);
|
||||
|
||||
void ws_messagehandler(ws_cli_conn_t client, const unsigned char *msg, uint64_t size, int type);
|
||||
void ws_opencon(ws_cli_conn_t client);
|
||||
void ws_closecon(ws_cli_conn_t client);
|
||||
Reference in New Issue
Block a user