From 1d76e900fe2fb82fd9541d67e619a9b25e5c121b Mon Sep 17 00:00:00 2001 From: Alyssa Kwan Date: Mon, 26 Dec 2016 15:03:47 -0800 Subject: [PATCH] server websocket lib --- client/public/index.html | 2 +- package.json | 3 +++ start-client.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/client/public/index.html b/client/public/index.html index aab5e3b..175c02f 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -13,7 +13,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - React App + Twitter Event Registrations in Real-Time
diff --git a/package.json b/package.json index 6664395..97bea03 100644 --- a/package.json +++ b/package.json @@ -29,5 +29,8 @@ "presets": [ "es2015" ] + }, + "dependencies": { + "express-ws": "^2.0.0" } } diff --git a/start-client.js b/start-client.js index 222682e..89b995f 100644 --- a/start-client.js +++ b/start-client.js @@ -5,5 +5,5 @@ const opts = { stdio: 'inherit', cwd: 'client', shell: true -} +}; childProcess.spawn('npm', args, opts);