onClose abstract method

void onClose(
  1. void cb(
    1. SocketCloseReason reason
    )
)

Implementation

void onClose(void Function(SocketCloseReason reason) cb);