View Source Pusher.WS.PusherEvent (Pusher v2.5.0)

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

Functions

Link to this function

client_event(event, data, channel)

View Source

Returns JSON for a client event on channel sending data

@spec 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

@spec unsubscribe(binary()) :: binary()

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