4 ms·
Checking out your code it looks like you're just polling (not longpolling)? Instead of just holding the connection open and waiting for a new message you pass t
by matthijs 17y ago
Checking out your code it looks like you're just polling (not longpolling)? Instead of just holding the connection open and waiting for a new message you pass the latest message and let the client reconnect.
I use node like this (really simplified but still): http://blog.dispostable.com/instant-mail-notifications-using-nodejs http://blog.dispostable.com/instant-mail-notifications-using...
- nishith 17y agomatthijs, really interesting post, and very much liked your product as well. Amazingly simple. But I couldn't see any new message indicator when I tried it out in Chrome. Has it already been put in production?
- matthijs 17y agoYes it is already live, all you need to do is click the "Check for new messages" button on the inbox page and you'll be notified with a sound and the new message will be highlighted. I just checked and made sure it is still working as it is suppose to (Firefox + Safari). Ill try Chrome as well.