Is there a size limit for objects sent to a custom destination application?

I am trying to pass a decent sized object to my receiving application, but it seems to fail. If I take a smaller object and do JSON.stringify then it seems to work. But no matter if I build the parent object or not, dispatch never works.

sender application

session.sendMessage(namespace, message, onSuccess.bind(this, "Message sent: " + message), onError);

      

destination application

window.messageBus.onMessage = function(event) {
    console.log('Message [' + event.senderId + ']: ' + event.data);
}

      

+3


source to share


1 answer


Yes, there is a size limitation, try to stay close to 64K. If you need to transfer more than you are using the wrong mechanism; the message bus is for small messages, mostly control messages, and should not be processed or used as a data channel.



+1


source







All Articles