aceracso
aceracso

Reputation: 21

Reproduce websocket errorcode 1006 in javascript

Anyone know if there is a way produce the close code 1006 in websockets consistently. I´m trying to reproduce this scenario in a javascript client.

Upvotes: 2

Views: 214

Answers (1)

Joakim Erdfelt
Joakim Erdfelt

Reputation: 49452

Error code 1006 is special in the WebSocket spec.

Read prior answer on close code 1006 in browsers.

That might help you understand what you are up against.

Upvotes: 1

Related Questions