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

change channel name does not work as expected. #19

Open
silenceway opened this issue Oct 13, 2014 · 2 comments
Open

change channel name does not work as expected. #19

silenceway opened this issue Oct 13, 2014 · 2 comments

Comments

@silenceway
Copy link

Hi.
Trying this code and works good, but if I try this: (add channel name)

        var chatWidget = new PusherChatWidget(pusher, {
          appendTo: "#pusher_chat_widget",
          channelName: "foo-bar-123-test-channel"
        });

textarea with messages always says
No chat messages available
Thanks for your help.

@mestaritonttu
Copy link

In chat.php, you have to match the name:
$channel_name = "foo-bar-123-test-channel";

Comment out the useless
$channel_name = get_channel_name($_SERVER['HTTP_REFERER']);

It took me like an hour of debugging to realize this..

I think this is a dupe of #11

@samphors
Copy link

It's worked for me. thanks you

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

3 participants