grails-events-push
grails-events-push copied to clipboard
Client not receiving the event
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.