onReconnect method

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

listen to on reconnected event

Implementation

void onReconnect(Function(dynamic data) handler) {}