Skip to content

Commit fd2729c

Browse files
committed
fix: correct WebSocket server instantiation in startServer function
1 parent 3871094 commit fd2729c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async function startServer(bundleStats, opts) {
100100
});
101101
});
102102

103-
const wss = new WebSocket.WebSocketServer({server});
103+
const wss = new WebSocket.Server({server});
104104

105105
wss.on('connection', ws => {
106106
ws.on('error', err => {

0 commit comments

Comments
 (0)