Add message handler seperate file

This commit is contained in:
Owen Schwartz
2024-11-10 21:06:36 -05:00
parent d223d4fcee
commit e141263b7e
2 changed files with 8 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
import { handleNewtMessage } from "./newt";
import { MessageHandler } from "./ws";
export const messageHandlers: Record<string, MessageHandler> = {
"newt": handleNewtMessage,
};