getPhoenixChannel

This method will subscribe phoenix channel for the given channelTopic and given events

import { getPhoenixChannel } from '@trixtateam/phoenix-to-redux';

Recommended that you already have made a socket connection by using connectPhoenix method before using this method.

Parameters

ParameterDescriptionTypeRequired

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

Copyright (c) 2020 Trixta Inc