Open ravi-2912 opened 9 months ago
I have the same issue where I am trying mock server side websocket to test React client side connection. Were you able to solve this?
Having the same issue
You need to import WebSocket from 'mock-socket'
import { WebSocket } from 'mock-socket';
I am running the following test in NodeJS.
And I get the following error
Please could you suggest how can I resolve this.