Skip to content

Commit

Permalink
Merge pull request #1174 from joeybaker/patch-1
Browse files Browse the repository at this point in the history
Fix(react-native) add missing `ws` dependency
  • Loading branch information
shilman authored Jun 5, 2017
2 parents 7b6c00c + 9a139ec commit d59feed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"uuid": "^3.0.1",
"webpack": "^2.4.1",
"webpack-dev-middleware": "^1.10.1",
"webpack-hot-middleware": "^2.18.0"
"webpack-hot-middleware": "^2.18.0",
"ws": "^3.0.0"
}
}
2 changes: 1 addition & 1 deletion app/react-native/src/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class Server {
this.expressApp = express();
this.expressApp.use(storybook(options));
this.httpServer.on('request', this.expressApp);
this.wsServer = ws.Server({ server: this.httpServer });
this.wsServer = new ws.Server({ server: this.httpServer });
this.wsServer.on('connection', s => this.handleWS(s));
}

Expand Down

0 comments on commit d59feed

Please sign in to comment.