feat: register initiative handlers in socket setup
This commit is contained in:
parent
53453bcbd7
commit
fcee648d07
1 changed files with 3 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ import type { RowDataPacket } from "mysql2";
|
|||
import db from "./db.js";
|
||||
import { rollDice } from "./dice.js";
|
||||
import { verifyToken } from "./auth/jwt.js";
|
||||
import { registerInitiativeHandlers } from "./routes/initiative.js";
|
||||
|
||||
interface EffectState {
|
||||
active: boolean;
|
||||
|
|
@ -156,6 +157,8 @@ export function setupSocket(io: Server) {
|
|||
socket.on("disconnect", () => {
|
||||
// Rooms are cleaned up automatically by Socket.IO
|
||||
});
|
||||
|
||||
registerInitiativeHandlers(io, socket);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue