onReconnect method

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

listen to on reconnect event

Implementation

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