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 am running some tests to convert our google-protobuf setup to protobuf-es
we have a WebSocket receiving / requesting data between C++ and JavaScript
i have registered the types i am using and passing that to my unpack function.
I noticed that inside the message JSON after converting the incoming binary function that any value that was set to 0 goes missing from the json object
event.data is an ArrayBuffer so it needs to be converted to a UInt8Array it seems
constdata=newUint8Array(event.data)constmessage=myMessagePacket.fromBinary(data);
...
//later i convert to jsonconstmyMessage=message.anyTypedData.unpack(registry);functionToPassBackToMyStateManmagement(myMessage.toJson())
I noticed printing myMessage.toJson() is missing any value which is set to 0.
The text was updated successfully, but these errors were encountered:
Hello,
I am running some tests to convert our google-protobuf setup to protobuf-es
we have a WebSocket receiving / requesting data between C++ and JavaScript
i have registered the types i am using and passing that to my unpack function.
I noticed that inside the message JSON after converting the incoming binary function that any value that was set to 0 goes missing from the json object
event.data
is anArrayBuffer
so it needs to be converted to aUInt8Array
it seemsI noticed printing
myMessage.toJson()
is missing any value which is set to 0.The text was updated successfully, but these errors were encountered: