From 9072293d2e2255ce738d7804f05980484290e966 Mon Sep 17 00:00:00 2001 From: Aran Donohue Date: Fri, 13 Dec 2024 22:50:31 -0800 Subject: [PATCH] refactor: use Uint8List for sending data over XHR rather than Int8List --- lib/src/client/transport/xhr_transport.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/client/transport/xhr_transport.dart b/lib/src/client/transport/xhr_transport.dart index e41a7f39..390e4943 100644 --- a/lib/src/client/transport/xhr_transport.dart +++ b/lib/src/client/transport/xhr_transport.dart @@ -51,7 +51,7 @@ class XhrTransportStream implements GrpcTransportStream { : _onError = onError, _onDone = onDone { _outgoingMessages.stream.map(frame).listen( - (data) => _request.send(Int8List.fromList(data).toJS), + (data) => _request.send(Uint8List.fromList(data).toJS), cancelOnError: true, onError: _onError);