grails-events-push icon indicating copy to clipboard operation
grails-events-push copied to clipboard

Client not receiving the event

Open harjitdotsingh opened this issue 11 years ago • 4 comments

I have the following code

events = {

"processed" namespace: 'browser', browser: true

}

code in the service def map= [:] map.json = data event('processed',map,{})

code on the client

var grailsEvents = new grails.Events('${createLink(uri: '')}', {transport:'sse'}); grailsEvents.on('processed', function(data){ alert("received Push") });

I don't see anything on the client.

harjitdotsingh avatar Feb 13 '13 14:02 harjitdotsingh