+add utf-8 validation code, not hooked up properly yet

+ws autobahn / Add code to test websocket client compliance with the autobahn test-suite
+Ping received with a payload too large (> 125 bytes) trigger a connection closure
+cobra / add tracking about published messages
+cobra / publish returns a message id, that can be used when
+cobra / new message type in the message received handler when publish/ok is received (can be used to implement an ack system).
This commit is contained in:
Benjamin Sergeant
2019-08-31 16:46:44 -07:00
parent a95fcbbdbf
commit b5b0de2083
16 changed files with 375 additions and 21 deletions

View File

@ -226,6 +226,9 @@ int main(int argc, char** argv)
httpServerApp->add_option("--port", port, "Port");
httpServerApp->add_option("--host", hostname, "Hostname");
CLI::App* autobahnApp = app.add_subcommand("autobahn", "Test client Autobahn compliance");
autobahnApp->add_option("--url", url, "url");
CLI11_PARSE(app, argc, argv);
// pid file handling
@ -328,6 +331,10 @@ int main(int argc, char** argv)
{
ret = ix::ws_httpd_main(port, hostname);
}
else if (app.got_subcommand("autobahn"))
{
ret = ix::ws_autobahn_main(url);
}
ix::uninitNetSystem();
return ret;