What should one do when it doesn't seem to be working the way it should? There should be improved error messages and handling when things go wrong and easy ways to log what is happening. There should be a debugger wiki page as well.
Here are some common problems one might run into, it would be good if Private Pub helped as much with debugging these as possible.
faye server isn't started or doesn't match server setting in config
the subscribe/publish message names don't match (i.e. publish /messages/new but subscribe to /messages/add)
the JavaScript in the block is in valid syntax
using PrivatePub.subscribe without subscribe_to call so messages are never received
token in faye server doesn't match rails app (such as different environment or config)
signature has expired
passing channel names without beginning with a slash with Faye
What should one do when it doesn't seem to be working the way it should? There should be improved error messages and handling when things go wrong and easy ways to log what is happening. There should be a debugger wiki page as well.
Here are some common problems one might run into, it would be good if Private Pub helped as much with debugging these as possible.
/messages/new
but subscribe to/messages/add
)PrivatePub.subscribe
withoutsubscribe_to
call so messages are never received