on abstract method

void Function() on(
  1. TransportWsEventHandler listener
)

Listens on the client which dispatches events about the socket state.

Implementation

void Function() on(TransportWsEventHandler listener);