diff --git a/app/react-native/src/server/index.js b/app/react-native/src/server/index.js index 862347ec719..2a5fcc167df 100755 --- a/app/react-native/src/server/index.js +++ b/app/react-native/src/server/index.js @@ -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)); }