mock-socket
mock-socket copied to clipboard
Bug in ws client mock - wrong close code when server not found
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
@Atrue could you please check, tests passing