Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Attach additional params in subscribe method for channel auth #824

Open
ChrisZieba opened this issue Jun 17, 2024 · 0 comments
Open

Comments

@ChrisZieba
Copy link

ChrisZieba commented Jun 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant