I've app that procude&consume message with kafka and protocol buffer and everything works great. I'm serialize the protocol buffer with SerializeAsString() (this app was written in c++).  Now, I've added new node.js website that also...
I had wrote a node/ssjs program that makes:   Tcp connection to data server(Apache MIMA), using TLS module. (OK) Encode/decode(serialize/deserialize) messages through protobuffer module.. (OK) Send serialized message to server and get response. (Not...
I'm using Protobuf for the communication between my web client and server (C#), using WebSocket. On the client, the de/serialization is done through Protobuf.js and, on the server, using protobuf-net.  The problem is that, when using aggregation...
protobuf.min.js:63 Uncaught Error: Illegal wire type for field   Message.Field .Data_new.vert: 5 (2 expected)   I get this message when I try to decode my binary file with protobuf.  vert.proto:  message Vertice_new{     repeated float values = 1...
Following to my previous question, I'm trying to use protocol buffers in node.js. I've generated ServiceMessage_pb.js from my ServiceMessage.proto, and add the following code:  var messages = require('./ServiceMessage_pb');   Now I...
I'm using protocol buffers over zeroMQ to send graph data from C++ to a Javascript frontend:  message RawData {    Type type = 1;    bytes data = 2; }   when i call RawData.getData() i get something like this (usually much longer):  Data: 0, 0, 0...
Is it a good choice to use Google Protocol Buffers in JavaScript or is it better to do it with JSON?  Also it'd be great if someone can give me a simple example about Protocol Buffers implementation in JavaScript. The documentation on the Google&...
I would like to send an object from a WebApi controller to an Html page through an Ajax Request.  When I receive the object in JS, it's empty. But server-side the object isn't empty because when I look at the byte[].length it's greater th...
Hi have a proto file as follows:  enum Type {     A = 0;     B = 1;     C = 2; }  message Message {     User to = 1;     User from = 2;     Type type = 3; }   I use protoc compiler to convert it to javascript utility classes. Using this generated jav...
We are currently using Ajax calls to a .net web service that then returns a Json object to the client.  Some of these Json objects are pretty massive (> 500k uncompressed).  We have heard some good things about Google Protocol Buffers and have bee...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.