to method

Socket to(
  1. String name
)

Targets a room when broadcasting.

name @return Socket self

Implementation

Socket to(String name) {
  if (!roomList.contains(name)) roomList.add(name);
  return this;
}