diff --git a/wsclient.h b/wsclient.h index e52a4f9..356771c 100644 --- a/wsclient.h +++ b/wsclient.h @@ -138,6 +138,12 @@ void libwsclient_close(wsclient *c); int libwsclient_helper_socket(wsclient *c, const char *path); void *libwsclient_helper_socket_thread(void *ptr); +void libwsclient_onclose(wsclient *client, int (*cb)(wsclient *c)); +void libwsclient_onopen(wsclient *client, int (*cb)(wsclient *c)); +void libwsclient_onmessage(wsclient *client, int (*cb)(wsclient *c, wsclient_message *msg)); +void libwsclient_onerror(wsclient *client, int (*cb)(wsclient *c, wsclient_error *err)); +int libwsclient_send(wsclient *client, char *strdata); + //Define errors char *errors[] = { "Unknown error occured",