pilwon / ultimate-seed

{MEAN Stack on Steroids} The ultimate full-stack AngularJS + Node.js/Express seed (batteries included!) that makes web developers insanely productive. (Angular, AngularUI, Barbeque, Bootstrap, Bower, Browserify, Docker, Express, Font Awesome, Grunt, Handlebars, jQuery, JSHint, Karma/Mocha, LESS/LESSHat, Livereload, Lodash/Underscore, Modernizr, MongoDB/Mongoose, Passport for Facebook/Google/Twitter, Redis, SocketIO, Source Maps, Uglify, Winston)
852 stars 179 forks source link

SockJS Support #113

Open johnjelinek opened 10 years ago

johnjelinek commented 10 years ago

Can we migrate to SockJS instead of Socket.io?

pilwon commented 10 years ago

@johnjelinek This looks like a fantastic replacement.

@yaru22 What do you think about SockJS?

yaru22 commented 10 years ago

Just some thoughts here...

I've seen a few people saying not to use socket.io 0.9 as it doesn't scale horizontally and susceptible for DDoS attack and I'll take their advice. However, socket.io seems to be in active development for 1.0 release and so is engine.io (communication layer for socket.io but you can use it without socket.io).

Looking at lib/ directory in SockJS, it seems like most of the code hasn't been updated in a while. Maybe it means the library is quite stable?

The approach I would suggest is using primus with SockJS or engine.io or whatever primus supports. This way, we can easily switch among SockJS, engine.io, etc.

Read this just FYI http://stackoverflow.com/a/18304517/448017.

What do you guys think?

johnjelinek commented 10 years ago

Yea, I think primus + SockJS makes sense.

ajohnclark commented 10 years ago

+1 to SockJS after client side DDoSing server. Great seed though :)