dispose method

void dispose()

Dispose messages, events, closes and errors subscriptions

Implementation

void dispose() {
  _onMessages = null;
  _onEvents = null;
  _onCloses = null;
  _onErrors = null;
}