onError method

void onError(
  1. CloseSocket fn
)

Implementation

void onError(CloseSocket fn) {
  socketNotifier!.addErrors(fn);
}