Skip to content

Commit

Permalink
fix(docs): error ws usage
Browse files Browse the repository at this point in the history
  • Loading branch information
electroluxcode committed Aug 27, 2024
1 parent d5ac85e commit 234e94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 234e94a

Please sign in to comment.