onConnect method

  1. @override
void onConnect(
  1. dynamic handler(
    1. dynamic data
    )
)
override

listen to on connect event

Implementation

@override
void onConnect(Function(dynamic data) handler) =>
    socket.onConnect((data) => handler(data));