onConnect method

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

Sets destination to the incoming source.

Override this function to run custom code when the dashboard connects, but be sure to call super.onConnect(source) as well.

Implementation

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