onClose method

void onClose(
  1. CloseSocket fn
)

Implementation

void onClose(CloseSocket fn) {
  socketNotifier!.addCloses(fn);
}