Skip to content

Commit

Permalink
refactor: use Uint8List for sending data over XHR rather than Int8List
Browse files Browse the repository at this point in the history
  • Loading branch information
aran committed Dec 14, 2024
1 parent d01361b commit 9072293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/client/transport/xhr_transport.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9072293

Please sign in to comment.