BaseClient constructor
BaseClient(
- StreamChannel channel, {
- ErrorCallback? onUnhandledError,
Implementation
BaseClient(StreamChannel channel, {rpc.ErrorCallback? onUnhandledError}) {
peer = rpc.Peer.withoutJson(channel,
onUnhandledError: onUnhandledError ?? handleError);
unawaited(peer.listen());
}