I am using Websync Server 3 and trying to set up a publisher only event.
On the main page of the application, the user is connected and subscribed and also publishes. This works great.
On another page, I want to just want to publish to a channel, not listen. Here is the code I set up:
fm.websync.client.initialize({
requestUrl: "http://localhost:59081/Request.ashx"
});
fm.websync.client.publish({
channel: '/location1',
data: {
QueueID: 2
},
onSuccess: function (args) {
alert('yes');
},
onFailure: function (args) {
alert(args.error);
}
});
When page loads, publish does not fire. I do not get an OnSuccess or OnFailure.
Is there something else that I am missing?
httpPublishDirect is also set to 'true' in web.config.