diff --git a/superset-websocket/src/index.ts b/superset-websocket/src/index.ts index 96d056a92ff..96a76e0a194 100644 --- a/superset-websocket/src/index.ts +++ b/superset-websocket/src/index.ts @@ -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);