to method

Namespace to(
  1. String name
)

Targets a room when emitting.

Implementation

Namespace to(String name) {
  rooms = rooms.isNotEmpty == true ? rooms : [];
  if (!rooms.contains(name)) rooms.add(name);
  return this;
}