Skip to content

CrossWS support cannot close WebSocket in server.opened #669

@andreasdamm-shure

Description

@andreasdamm-shure

The guard in here

if (clients.has(peer)) {
prevents the server from closing the WebSocket inside the opened function (e.g. here
socket.close(
) as the peer is only added to the clients set upon returning from opened.

The result is that no init response is sent and the WebSocket stays open.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions