libwebsockets: hande fragmented messages, fixes #9

This commit is contained in:
Shuanglei Tao
2016-10-01 20:32:40 +08:00
parent 60baf391ca
commit c4d16c0283
3 changed files with 33 additions and 7 deletions

View File

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