emit method

dynamic emit(
  1. Map data
)

Implementation

emit(Map data) {
  _ws._channels[data['channel']]?.trigger(data['data']);
}