Skip to content

Commit

Permalink
Merge pull request #678 from electroluxcode/docs/usage-ws
Browse files Browse the repository at this point in the history
fix(docs): mistake ws usage
  • Loading branch information
alecgibson authored Aug 27, 2024
2 parents d5ac85e + 234e94a commit 297ce5d
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 297ce5d

Please sign in to comment.