onData method

Future<void> onData()

Whenever the socket receives data, this method is called, if it is non-null.

Implementation

Future<void> onData() async {}