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

Websockets are not working #76

@mmertama

Description

@mmertama

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions