Skip to content

Instantly share code, notes, and snippets.

@deviantfero
Last active January 31, 2018 17:24
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 deviantfero/9873cadc3bc71ed1d26dab11a5fe35d0 to your computer and use it in GitHub Desktop.
Save deviantfero/9873cadc3bc71ed1d26dab11a5fe35d0 to your computer and use it in GitHub Desktop.
import { Server } from 'ws';
import { createServer } from 'http';
import Roulette from './roulette';
const wss = new Server({ port: 8000 });
const mm = new Roulette();
wss.on('connection', ws => {
mm.register(ws);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment