Skip to content

[macOS] Can't establish WebSockets connection, perhaps related to lws_bind_protocol error. #2

@MarkoCindric-xyz

Description

@MarkoCindric-xyz

Hi there,

I'm struggling to get this software to function as intended with a preexisting LeapJS project I've been working on. Build was successful and binary seems to execute properly, but I get a fairly ambiguous lws_bind_protocol error message when attempting to run the LeapJS project, and Firefox's console reports Firefox can’t establish a connection to the server at ws://127.0.0.1:6437/v6.json. Chromium reports this: WebSocket connection to 'ws://127.0.0.1:6437/v6.json' failed: Error during WebSocket handshake: net::ERR_RESPONSE_HEADERS_TOO_BIG. Any help would be greatly appreciated.

This is what my terminal looks like after running the binary:

[2025/08/10 19:47:21:7714] N: lws_create_context: LWS: 4.4.0-unknown, NET CLI SRV H1 H2 WS SS-JSON-POL ConMon IPV6-on
[2025/08/10 19:47:21:7730] N: [vh|0|default||6437]: lws_socket_bind: source ads 0.0.0.0
[2025/08/10 19:47:21:7731] N: [vh|0|default||6437]: lws_socket_bind: source ads ::
Starting server...
Connected.
[2025/08/10 19:47:26:4653] E: lws_bind_protocol: 0x7fc89e204690 is not in vhost 'default' protocols list
connection established
[2025/08/10 19:47:26:4654] N: Client connect!
New user, need to send the 'version'

Built and running on macOS Ventura 13.7.7.

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