Currently, my method of sending messages to Pusher in .NET is like the following:
var result = pusher.Trigger( "channel-1", "test_event", new { message = "hello world" } );
The way I receive them in JavaScript is as follows:
var pusher = new Pusher('APP_KEY');
var channel = pusher.subscribe('channel-1');
channel.bind('test_event', function(data) {
// process
}
);
I am wondering if there is a possibility to send the payload in a different (smaller) format, such as Protocol Buffers?