Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created October 20, 2021 10:43
Show Gist options
  • 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