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'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...
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...
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&...
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...
I'm having a hard time figuring out how to send a file over a WebSocket using Google Protocol buffers.  My message structure for the buffer is  message FileData_m {     required uint32 block = 1; // File starting offset     required bytes data =...
I'm using Protobuf.js to write a hook for sails.js to be able to send message encoded by protocol buffers by socket.io.  Say I have a proto scheme Message.proto:  message Message{     required string message = 1;     optional string user = 2;...
I'm try to decode protobuf message from server side (base64 string) to javascript object. Use for decode protobuf.js.  As doc suggest :   var builder = ProtoBuf.newBuilder({ convertFieldsToCamelCase: true }); var YourMessage = builder.build("...
I'm creating a test network where a node.js application communicates to a C++ application via ZeroMQ using Google Protocol Buffers for the message structure.  Data from C++ to JavaScript can be serialized, sent, received, and deserialized without...
I have created a simple GRPC server and  client .    What i want to do is to create a custom error in the server and pass it to the client. My code looks as follows:  Server.js  var error = require('error');  var PROTO_PATH = grpc.load(__dirn...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.