(user: User, roomId: string)
| 38 | } |
| 39 | |
| 40 | addUser(user: User, roomId: string) { |
| 41 | this.interestedSockets.set(roomId, [ |
| 42 | ...(this.interestedSockets.get(roomId) || []), |
| 43 | user, |
| 44 | ]); |
| 45 | this.userRoomMappping.set(user.userId, roomId); |
| 46 | } |
| 47 | |
| 48 | broadcast(roomId: string, message: string) { |
| 49 | const users = this.interestedSockets.get(roomId); |
nothing calls this directly
no outgoing calls
no test coverage detected