Pusher-CI
Pusher-CI copied to clipboard
presence_auth responce
I'm calling presence_auth and finding that authorization seems not to be working. I think there's an issue with the way socket_auth() is returning the auth string in the Pusher-CI library as it seems to return no value. I say this because when I replace this:
$this->CI->output->set_content_type('application/json')->set_output(json_encode($signature));
with this (from the Pusher-PHP class):
return json_encode($signature);
Then everything works great. I'm not sure what the former actually does. Can you explain? Any ideas why it isn't working for me?