diff --git a/src/workbench/node/server/main.js b/src/workbench/node/server/main.js index 5f694bf1..d616e57f 100644 --- a/src/workbench/node/server/main.js +++ b/src/workbench/node/server/main.js @@ -85,6 +85,9 @@ io.on('connection', (socket) => { {} ), }); + ws.on('error', (err) => { + socket.emit('ws-client', { type: 'ws-connect-back', status: -1, content: err }); + }); } catch (error) { socket.emit('ws-client', { type: 'ws-connect-back', status: -1, content: error }); ws = null;