* Targets a room when emitting. Similar to `to()`, but might feel clearer in some cases: * * @example * // disconnect all clients in the "room-101" room * io.in("room-101").disconnectSockets(); * * @param room - a room, or an array of rooms * @return a new {@link BroadcastOperat
(room: Room | Room[])
| 71 | * @return a new {@link BroadcastOperator} instance for chaining |
| 72 | */ |
| 73 | public in(room: Room | Room[]) { |
| 74 | return this.to(room); |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * Excludes a room when emitting. |