mock-socket icon indicating copy to clipboard operation
mock-socket copied to clipboard

When an explicit `0` is passed as the close `code` it is honoured instead of defaulted back to `1000`

Open steveluscher opened this issue 1 year ago • 7 comments
trafficstars

After this PR, this works as expected:

ws.close({ code: 0, reason: 'o no', wasClean: false });

Before this PR that would force the code back to 1000.

steveluscher avatar Oct 11 '24 23:10 steveluscher