In Ubuntu 19.04 websockets seems not to work at all. rockets::Server::handleOpen is never called even on the webbrowser client says the websocket will open successfully. HTTP works (rockets::Server::handle for GET is called)
In JS
"var uri = "ws://127.0.0.1:8080/telex";
var socket = new WebSocket(uri);
socket.onopen = function(event) {
console.log("onopen", uri, event);
}"
I construct rockets::Server as m_server(":" + std::to_string(port), "telex", ThreadCount) ... it does not matter if ThreadCount is 0 or 8 (if 0 I call Server::process() to poll) - HTTP works fine, websockets do nothing. I cannot debug libwebsockets so I have no clue what is going on there.
I wrote a simple websocket server using Python, it works (with or without "telex")
In Ubuntu 19.04 websockets seems not to work at all. rockets::Server::handleOpen is never called even on the webbrowser client says the websocket will open successfully. HTTP works (rockets::Server::handle for GET is called)
In JS "var uri = "ws://127.0.0.1:8080/telex"; var socket = new WebSocket(uri); socket.onopen = function(event) { console.log("onopen", uri, event); }"
I construct rockets::Server as m_server(":" + std::to_string(port), "telex", ThreadCount) ... it does not matter if ThreadCount is 0 or 8 (if 0 I call Server::process() to poll) - HTTP works fine, websockets do nothing. I cannot debug libwebsockets so I have no clue what is going on there.
I wrote a simple websocket server using Python, it works (with or without "telex")