onConnect method

  1. @override
void onConnect(
  1. SocketInfo source
)
inherited

Sets destination to the incoming source.

Override this function to run custom code when a device connects to this socket.

Implementation

@override
void onConnect(SocketInfo source) {
  super.onConnect(source);
  _flushLogBuffer();
}