// wsServer.tsconst WebSocketServer = WebSocket.Server || WSWebSocketServer; const wss = new WebSocketServer({ port: 3002, });const handler = applyWSSHandler({ wss, router: appRouter, createContext: () => ({}) as Context });wss.on('connection', (ws) => { consola.log(`➕➕ Connection (${wss.clients.size})`); ws.once('close', () => { consola.log(`➖➖ Connection (${wss.clients.size})`); const storage = useStorage('db') // HERE, SOMEHOW GET UNIQUE SOCKET ID const socketId = ... const linkedUserId = storage.get(socketId) // If present linked user ID, mark user offline if(linkedUserId) db.update(userOrganizationsTable).... });});consola.log('✅ WebSocket Server listening on ws://localhost:3002');