Skip to content

Commit

Permalink
fix(websocket): add error handling (#29538)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshit2283 committed Jul 10, 2024
1 parent 17a4537 commit 1d35ca4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions superset-websocket/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ export const cleanChannel = (channel: string) => {

if (startServer) {
// init server event listeners
wss.on('connection', function (ws) {
ws.on('error', console.error);
});
wss.on('connection', wsConnection);
httpServer.on('request', httpRequest);
httpServer.on('upgrade', httpUpgrade);
Expand Down

0 comments on commit 1d35ca4

Please sign in to comment.