pusher-community / pusher-realtime-chat-widget

Example Realtime Chat Widget that can be added to any web page or app.
97 stars 87 forks source link

Pusher's client is not able to receive data after triggering (''chat_message") when using Node.js as server ! #24

Closed heythm closed 9 years ago

heythm commented 9 years ago

https://github.com/pusher/pusher-realtime-chat-widget/blob/gh-pages/src/nodejs/app.js#L69

leggetter commented 9 years ago

Can you please provide some debug output to show the result of the interaction with the Pusher HTTP API?

var socketId = null;
pusher.trigger('channel-1', 'test_event', { message: "hello world" }, socketId, function(error, request, response) {
});

if the error argument is not null it may identify what the problem is. Otherwise you can inspect the response.

The next step is to look at the Pusher Debug Console to check the interaction is being received by Pusher. Following that you'll want to look at the output of the Pusher JavaScript logging.