Pusher v2.2.0 Pusher.WS.PusherEvent View Source

Link to this section Summary

Functions

Returns JSON for a client event on channel sending data

Return a JSON for a subscription request using the channel name as parameter

Return a JSON for a subscription request using the private channel, socket_id and the credential

Return a JSON for a subscription request using the presence channel, socket_id, the credential and the user

Return a JSON for a unsubscription request using the channel name as parameter

Link to this section Functions

Link to this function

client_event(event, data, channel) View Source

Returns JSON for a client event on channel sending data

Link to this function

subscribe(channel) View Source
subscribe(binary()) :: binary()

Return a JSON for a subscription request using the channel name as parameter

Link to this function

subscribe(channel, socket_id, credential) View Source

Return a JSON for a subscription request using the private channel, socket_id and the credential

Link to this function

subscribe(channel, socket_id, credential, user) View Source

Return a JSON for a subscription request using the presence channel, socket_id, the credential and the user

Link to this function

unsubscribe(channel) View Source
unsubscribe(binary()) :: binary()

Return a JSON for a unsubscription request using the channel name as parameter