dispose method
void
dispose()
Dispose the protocol, cancelling all pending requests.
Implementation
void dispose() {
_registry.cancelAll('Protocol disposed');
_outgoing.close();
_errors.close();
_notifications.close();
_requestHandlers.clear();
_notificationHandlers.clear();
}