Websocket On Worker Return "outcome": "canceled"

Hi there,

I have an issue with my cloudflare worker that runs a websocket, written in node.js . I am getting two connection attempts even though I am only sending one message to init the connection from the client side:

  1. The first has this:
    “outcome”: “canceled”,
  2. The second has this:
    “outcome”: “ok”,
    and has this log:

“logs”: [
{
“message”: [
“Connection not in ‘CLOSED’ state.”
],
“level”: “log”,
“timestamp”: 1693928870425
}
],

Would appreciate any help.

1 Like