mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-05 02:39:07 +02:00
@@ -104,7 +104,8 @@ const processMessage = async (
|
|||||||
|
|
||||||
const handler = messageHandlers[message.type];
|
const handler = messageHandlers[message.type];
|
||||||
if (!handler) {
|
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({
|
const response = await handler({
|
||||||
|
|||||||
@@ -353,7 +353,10 @@ const setupConnection = async (
|
|||||||
|
|
||||||
const handler = messageHandlers[message.type];
|
const handler = messageHandlers[message.type];
|
||||||
if (!handler) {
|
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({
|
const response = await handler({
|
||||||
|
|||||||
Reference in New Issue
Block a user