emitWhenConnected method

  1. @internal
void emitWhenConnected(
  1. RoomEvent event
)

Implementation

@internal
void emitWhenConnected(RoomEvent event) {
  if (connectionState == ConnectionState.connected) {
    events.emit(event);
  }
}