add streaming

This commit is contained in:
Emily Hou 2018-06-21 13:57:53 -07:00
parent 1bd7e4d486
commit e4a0028f5d
4 changed files with 50 additions and 41 deletions

View file

@ -12,7 +12,7 @@ if (config.sentry_dsn) {
const app = express();
expressWs(app, null, { perMessageDeflate: false });
app.ws('/api/ws', require('./routes/ws')); //want to move this into routes/index.js but it's not working...
app.ws('/api/ws', require('./routes/ws'));
routes(app);
app.use(