Add mqtt_over_websocket_server example

Fixed bug in websocket handshake:
now adding Sec-WebSocket-Protocol header in handshake response.

PUBLISHED_FROM=e4a71ff9dc4aeec63db40cb7f356dc5b25c1215a
This commit is contained in:
Our CI Bot authored and Cesanta Bot committed 2017-08-24 10:34:35 +00:00
1 parent d4b55c4ceb
commit 09e4254718
4 files changed
+156 -13

No files matched your search

+1
View File
@@ -5087,6 +5087,7 @@ int mg_http_create_digest_auth_header(char *buf, size_t buf_len,
struct mg_mqtt_message {
int cmd;
int qos;
int len; /* message length in the IO buffer */
struct mg_str topic;
struct mg_str payload;