mock-socket
mock-socket copied to clipboard
serverLookup on network-bridge does not find the server according to the given url
I am expecting the on message handler I attach to the server to be fired when the websocket sends any message, and it doesnt
After debugging I found that the websocket.js does not find the server to dispatch the event Please help
server.js creates a server instance:
websocket.js does not find the server:
Of course the url is the same in the server.js and websocket.js
Looks like the urlMap is empty:
My mistake forget it. I was stopping the server in the afterEach block and it was removing it from the urlMap.