Whenever the socket receives data, this method is called, if it is non-null.
Future<void> onData() async {}