diff --git a/docs/getting-started.md b/docs/getting-started.md index 4e48c3b4c..0e91fc3b0 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -44,7 +44,7 @@ var WebSocketJSONStream = require('@teamwork/websocket-json-stream') var app = express() var server = http.createServer(app) -var webSocketServer = WebSocket.Server({server: server}) +var webSocketServer = new WebSocket.Server({server: server}) var backend = new ShareDB() webSocketServer.on('connection', (webSocket) => {