getPhoenixChannel
This method will subscribe phoenix channel for the given channelTopic and given events
Recommended that you already have made a socket connection by using connectPhoenix method before using this method.
Parameters
Parameter | Description | Type | Required |
---|---|---|---|
channelTopic | Name of channel/Topic | string | |
logPresence | Determines if presence should be tracked for the channel | boolean | |
token | private token for channel | string | |
additionalData | This data will be available for you as additionalData on the response | object | |
events | Array of event names to subscribe to and will dispatch response to eventActionType | { eventName:string; eventActionType:string } [] | |
domainUrl | socket endpoint to connect to | string |
Last updated