Skip to content

Instantly share code, notes, and snippets.

@overdrive3000
Last active June 13, 2016 19:04
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 overdrive3000/6e2eb31daf4d56acfd41ecf4bd1c883b to your computer and use it in GitHub Desktop.
Save overdrive3000/6e2eb31daf4d56acfd41ecf4bd1c883b to your computer and use it in GitHub Desktop.
websocket-test
let msg = {
name: 'channel add',
data: {
name: 'Hardware Support'
}
};
let ws = new WebSocket('ws://localhost:4000');
ws.onopen = () => {
ws.send(JSON.stringify(msg));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment