Skip to content

Commit 00a012a

Browse files
committed
refactor: use Uint8List for sending data over XHR rather than Int8List
1 parent 20bd173 commit 00a012a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/client/transport/xhr_transport.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class XhrTransportStream implements GrpcTransportStream {
5151
: _onError = onError,
5252
_onDone = onDone {
5353
_outgoingMessages.stream.map(frame).listen(
54-
(data) => _request.send(Int8List.fromList(data).toJS),
54+
(data) => _request.send(Uint8List.fromList(data).toJS),
5555
cancelOnError: true,
5656
onError: _onError);
5757

0 commit comments

Comments
 (0)