(userId, event, data = {})
| 295 | |
| 296 | // Emit to specific user |
| 297 | emitToUser(userId, event, data = {}) { |
| 298 | if (!this.io) return; // Skip if not initialized |
| 299 | const room = `user:${userId}`; |
| 300 | this.io.to(room).emit(event, data); |
| 301 | } |
| 302 | |
| 303 | // Emit to team |
| 304 | emitToTeam(teamId, event, data = {}) { |