You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to send additional info to channelAuthorization on subscribe? For example, something like this where data could be passed to the channelAuthorization endpoint?
pusher.subscribe(channelName, data)
I know channelAuthorization has a paramsHandler but the issue I have is this function should return different data based on the channel.
My current hack is to create a separate instance of pusher everytime I subscribe to a channel, or modify the function paramsHandler before calling subscribe. Using the channel name to add this data won't work because of the length limitation.
The text was updated successfully, but these errors were encountered:
Is there a way to send additional info to
channelAuthorization
on subscribe? For example, something like this wheredata
could be passed to thechannelAuthorization
endpoint?I know channelAuthorization has a
paramsHandler
but the issue I have is this function should return different data based on the channel.My current hack is to create a separate instance of pusher everytime I subscribe to a channel, or modify the function
paramsHandler
before calling subscribe. Using the channel name to add this data won't work because of the length limitation.The text was updated successfully, but these errors were encountered: