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

ssl port 443 support

Open natesire opened this issue 5 years ago • 0 comments

I am testing PeerJS. And I ran into a problem where the script downgraded me from port 443/SSL to a regular ws port 8080. Is there a way for me to mock the server on wss, port 443? I can set port 443...

But I can't set it to wss...

const fakeURL = 'wss://localhost:443/peerjs?key=peerjs&id=1&token=testToken'; const mockServer = new Server(fakeURL);

natesire avatar May 29 '20 02:05 natesire