-
Notifications
You must be signed in to change notification settings - Fork 87
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
pusher trigger not working in Development Server but works fine in local #7
Comments
The pusher library depends on curl to be available in PHP so maybe that's the difference. Try running phpinfo() on the server to see if that's the case. The trigger function also accepts a debug flag. You can then print the output of the operation. This might as well give you a clue of what is happening. $out = $pusher->trigger(
'presence-nettuts', //the channel
'new_message', //the event
array('message' => $message), //the data to send
null,
true
);
// display $out |
@Indians, are you still experiencing this problem? |
I am working on a real time timetable scheduler on MERN stack using Pusher. Somehow the req and response is coming and going fine, but the pusher trigger is not working(my assumption as axios is not getting any error and infact sending 200 status code). |
I have the same problem with him. Anybody who knows the reason? |
Hey, @himanshuc3 So in my case, I created another Pusher app and set cluster as us3 which will work for Heroku. |
For me, I had to remove these from my config const pusher = new Pusher({
appId: 'APP_ID',
key: 'APP_KEY',
secret: process.env.PUSHER_SECRET,
cluster: 'us2',
// these two were causing pusher.trigger to not work on deployed server
// useTLS: true
// encrypted: true
}) |
set BROADCAST_DRIVER=pusher on heroku config veriables |
This one worked for me, thanks |
Hi,
Please help me to fix this issue.
i got pusher chat real time application from the tutorial http://code.tutsplus.com/tutorials/getting-real-time-with-pusher--net-22106.
Above tutorial works fine in my local Wamp server. i have moved same code to host server in that trigger new_message event not working.
$pusher->trigger(
'presence-nettuts', //the channel
'new_message', //the event
array('message' => $message) //the data to send
);
above line returns 1 in local and returns none/empty in host server.
Please guide me if need any host server configuration needed?
sorry for my bad English.
The text was updated successfully, but these errors were encountered: