setCloseCallback method
Registers the callback executed when the socket closes
Implementation
@override
void setCloseCallback(void Function() cb) {
_onClose.register((_) => cb());
}
Registers the callback executed when the socket closes
@override
void setCloseCallback(void Function() cb) {
_onClose.register((_) => cb());
}