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

serverLookup on network-bridge does not find the server according to the given url

Open Avien opened this issue 8 years ago • 1 comments

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:

image

websocket.js does not find the server:

image

Of course the url is the same in the server.js and websocket.js Looks like the urlMap is empty: image

Avien avatar Jul 13 '16 09:07 Avien

My mistake forget it. I was stopping the server in the afterEach block and it was removing it from the urlMap.

Avien avatar Jul 13 '16 09:07 Avien