Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Websockets are not working #76

Open
mmertama opened this issue Oct 24, 2019 · 0 comments
Open

Websockets are not working #76

mmertama opened this issue Oct 24, 2019 · 0 comments

Comments

@mmertama
Copy link

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")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant