Craig M
unread,Sep 1, 2011, 10:04:32 AM9/1/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SocketStream
I'm not overly familiar with Nowjs, but I was looking at it before I
found SocketStream.
The most important difference is scalability. Nowjs does not have the
plumbing necessary to persist sessions and pub/sub info to a common
store so when a client gets disconnected they can reconnect to any
process and pick up where they left off. You'd have to write that
yourself with Nowjs. It's a core concept in SocketStream.
Nowjs also doesn't deliver all of your templates and client side
scripts on the first page load. This could be a good or bad thing
depending on your project. If you're making a single page app from
scratch, SocketStream helps you do it better (IMO). If you need to
integrate into an existing app or serve other routes (eg, '/blog' or '/
news', Nowjs might be a better choice. At least until someone comes up
with a middleware module for SocketStream that let's us whitelist
certains routes and handle them before they get to SS. I'll need
something like this eventually, but it's low on my priority list. I
imagine someone else will get to it before I do, but if it still
hasn't been done by the time I need it, I'll be writing a module to do
it.