You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to send an array byte as a client stream.
When I tried to send the data, the grpc got EOF and never got data from the client side.
In the client side, I'm using Uint8Array as a byte array.(grapc-gateway converts bytes to Uint8Array in javascript)
I'm new to WebSocket, was I missing something?
If you need more detail I will create a minimal reproduction code.
constbyteMessage=newTextEncoder().encode("test message");// create bytes(Uint8Array) for requestws.send(JSON.stringify({health: 'abc',buf: byteMessage}));// this code not working(got EOF)ws.send(JSON.stringify({health: 'abc'}));// without `buf` property work correctly. And I could get data on the server side.
Hi!
I'm trying to send an array byte as a client stream.
When I tried to send the data, the grpc got EOF and never got data from the client side.
In the client side, I'm using Uint8Array as a byte array.(grapc-gateway converts bytes to Uint8Array in javascript)
I'm new to WebSocket, was I missing something?
If you need more detail I will create a minimal reproduction code.
.proto message definition is
client-side is like this.
and the server side is like this.
The text was updated successfully, but these errors were encountered: