Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created October 20, 2021 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/8e3bee1f4732eda2b3ad8ce1cb74aab4 to your computer and use it in GitHub Desktop.
Save velotiotech/8e3bee1f4732eda2b3ad8ce1cb74aab4 to your computer and use it in GitHub Desktop.
const WebSocket = require('ws');
const sockedEndpoint = 'http://0.0.0.0:3001';
const ws1 = new WebSocket(sockedEndpoint, {
perMessageDeflate: false
});
const ws2 = new WebSocket(sockedEndpoint, {
perMessageDeflate: false
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment