mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(websocket): add error handling (#29538)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user