Last active
January 31, 2018 17:24
-
-
Save deviantfero/9873cadc3bc71ed1d26dab11a5fe35d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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