mock-socket
mock-socket copied to clipboard
When an explicit `0` is passed as the close `code` it is honoured instead of defaulted back to `1000`
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.