Skip to content

Instantly share code, notes, and snippets.

@deviantfero deviantfero/server.ts
Last active Jan 31, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.