const char * wangwillDemoServerOptions[] = {
"listening_ports", "9000",
"num_threads", "16",
"enable_directory_listing", "no",
"enable_keep_alive", "yes",
NULL
};
HttpServer * wangwillDemoHttpServer = new HttpServer(wangwillDemoServerOptions);
WebSocketRequestManager * wangwillWebSocketManager = new WebSocketRequestManager();
wangwillDemoHttpServer->newWebSocketHandler("/control", wangwillWebSocketManager);
| virtual bool handleData(CivetServer *server, |
| struct mg_connection *conn, |
| int bits, |
| char *data, |
And do you mean that it should work even I don't need to override the handleConnection function?I am thinking should I provide some response back to get the websocket connection open, but sounds like I don't need to worry about that?William