From cd059728fd0bff01f1089d41dd9a54d1daa9706f Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 31 Mar 2025 15:25:30 -0400 Subject: [PATCH] Put back handle relay message --- server/routers/messageHandlers.ts | 5 +++-- server/routers/olm/index.ts | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/server/routers/messageHandlers.ts b/server/routers/messageHandlers.ts index 08f5e7ce..759a88ea 100644 --- a/server/routers/messageHandlers.ts +++ b/server/routers/messageHandlers.ts @@ -1,5 +1,5 @@ import { handleNewtRegisterMessage, handleReceiveBandwidthMessage } from "./newt"; -import { handleOlmRegisterMessage } from "./olm"; +import { handleOlmRegisterMessage, handleOlmRelayMessage } from "./olm"; import { handleGetConfigMessage } from "./newt/handleGetConfigMessage"; import { MessageHandler } from "./ws"; @@ -7,5 +7,6 @@ export const messageHandlers: Record = { "newt/wg/register": handleNewtRegisterMessage, "olm/wg/register": handleOlmRegisterMessage, "newt/wg/get-config": handleGetConfigMessage, - "newt/receive-bandwidth": handleReceiveBandwidthMessage + "newt/receive-bandwidth": handleReceiveBandwidthMessage, + "olm/wg/relay": handleOlmRelayMessage }; diff --git a/server/routers/olm/index.ts b/server/routers/olm/index.ts index 616480cc..b7373961 100644 --- a/server/routers/olm/index.ts +++ b/server/routers/olm/index.ts @@ -1,3 +1,4 @@ export * from "./handleOlmRegisterMessage"; export * from "./getOlmToken"; -export * from "./createOlm"; \ No newline at end of file +export * from "./createOlm"; +export * from "./handleOlmRelayMessage"; \ No newline at end of file