Pusher plugin
Dependency :
runtime ":pusher:0.5"Custom repositories :
mavenRepo "http://repository.codehaus.org/"
Summary
Plugin for adding Pusher support into your application.
Installation
grails install-plugin pusher
Description
Pusher plugin
This plugin is a wrapper for the Pusher Publisher API.Source code available on Github. Collaborations are welcome :)Configuration
When installing the plugin, placeholders for your Pusher credentials are added to your Config.groovy file. Fill in the credentials:pusherapp.host = "api.pusherapp.com" pusherapp.applicationId = "" pusherapp.applicationKey = "" pusherapp.applicationSecret = ""
PusherService
The plugin provides this service to communicate with the Pusher API. Inject it in your artifacts declaring this attribute:def pusherService
pusherService.triggerPush(channel, event, jsonData)
pusherService.triggerPush(channel, event, jsonData, socketId)
pusherService.genAuthString(socketId, channel, userData)