onclose method
Registers a handler that will be invoked when the connection is closed.
Implementation
void onclose(ClosedCallback callback) {
_closedCallbacks.add(callback);
}
Registers a handler that will be invoked when the connection is closed.
void onclose(ClosedCallback callback) {
_closedCallbacks.add(callback);
}