libwebsockets 3.0 support

This commit is contained in:
Shuanglei Tao
2018-08-18 17:07:41 +08:00
parent be91d56904
commit 0f97a69446
4 changed files with 72 additions and 44 deletions

View File

@@ -27,7 +27,7 @@ struct tty_server *server;
// websocket protocols
static const struct lws_protocols protocols[] = {
{"http-only", callback_http, 0, 0},
{"http-only", callback_http, sizeof(struct pss_http), 0},
{"tty", callback_tty, sizeof(struct tty_client), 0},
{NULL, NULL, 0, 0}
};