neoPusher
Basic plugin for real time communication using Pusher channels.
More information about Pusher Channels:
https://pusher.com/channels
Sample app:
https://visualneo.com/tutorials/neochat
neoPusherInitialize
Purpose: |
Initialize Pusher communication |
Category: |
neoPusher |
Syntax: |
neoPusherInitialize "apiKey" "cluster" "theUrl" theMode
apiKey API key cluster Cluster (ie: eu) theUrl Server URL (neoPusher php script. ie: https://mydomain.com/pusher/index.php) theMode Debug mode (if true will send aditional data to the Console) |
neoPusherSubscribe
Purpose: |
Subscribe to a public channel and event, sending each new message to a subroutine. |
Category: |
neoPusher |
Syntax: |
neoPusherSubscribe "theChannel" "theEvent" theSub
theChannel Channel name theEvent Event name theSub Subroutine to execute whenever a new message arrives |
neoPusherUnsubscribe
Purpose: |
Unsubscribe from a channel and closes the connection. |
Category: |
neoPusher |
Syntax: |
neoPusherUnsubscribe "theChannel"
theChannel Channel name |
neoPusherSend
Purpose: |
Send a message to an channel event. |
Category: |
neoPusher |
Syntax: |
neoPusherSend "theChannel" "theEvent" [theData] successSubroutine errorSubroutine
theChannel Channel name theEvent Event name theData Data variable object to send successSubroutine Successs callback subroutine (optional) errorSubroutine Error callback subroutine (optional) |