You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a websocket server which needs to be tested. I pass it a WebSocket object from node-ws, and it communicates with the client using that object. Normally the object is obtained from express-ws routing, but for testing it should be WebSocket from mock-socket. However, I cannot figure out how I am supposed to get any information out of the WebSocket object from mock-socket after passing it to my server. Does this library only support mocking servers and not clients? It is hard to tell because the README does not really document what is supposed to be supported, nor is there any API reference.
The text was updated successfully, but these errors were encountered:
I have a websocket server which needs to be tested. I pass it a
WebSocket
object fromnode-ws
, and it communicates with the client using that object. Normally the object is obtained fromexpress-ws
routing, but for testing it should beWebSocket
frommock-socket
. However, I cannot figure out how I am supposed to get any information out of theWebSocket
object frommock-socket
after passing it to my server. Does this library only support mocking servers and not clients? It is hard to tell because the README does not really document what is supposed to be supported, nor is there any API reference.The text was updated successfully, but these errors were encountered: