diff --git a/server/private/routers/ws/ws.ts b/server/private/routers/ws/ws.ts index 34356a8c8..4a79ff006 100644 --- a/server/private/routers/ws/ws.ts +++ b/server/private/routers/ws/ws.ts @@ -104,7 +104,8 @@ const processMessage = async ( const handler = messageHandlers[message.type]; if (!handler) { - throw new Error(`Unsupported message type: ${message.type}`); + logger.debug(`No handler found for message type: ${message.type}`); + return; } const response = await handler({ diff --git a/server/routers/ws/ws.ts b/server/routers/ws/ws.ts index 62aee93bd..358ff8b81 100644 --- a/server/routers/ws/ws.ts +++ b/server/routers/ws/ws.ts @@ -353,7 +353,10 @@ const setupConnection = async ( const handler = messageHandlers[message.type]; if (!handler) { - throw new Error(`Unsupported message type: ${message.type}`); + logger.debug( + `No handler found for message type: ${message.type}` + ); + return; } const response = await handler({