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

Bug in ws client mock - wrong close code when server not found

Open easy-death opened this issue 2 years ago • 1 comments

Current native Websocket implementation returns wasClean: false and code: 1006 when wrong url is provided. https://github.com/thoov/mock-socket/blob/eab4bf59ab83298ee42a21fc535a369432fe22c6/src/websocket.js#L94

easy-death avatar Feb 24 '23 14:02 easy-death

@Atrue could you please check, tests passing

easy-death avatar Feb 24 '23 14:02 easy-death