onClose method
void
onClose(
- void callback()
Listen for when the connection is closed.
Implementation
void onClose(void Function() callback) {
on(ConnectionEvent.close.name, null, (ev, context) {
callback();
});
}