ultimate-seed icon indicating copy to clipboard operation
ultimate-seed copied to clipboard

SockJS Support

Open johnjelinek opened this issue 10 years ago • 4 comments

Can we migrate to SockJS instead of Socket.io?

johnjelinek avatar Apr 26 '14 17:04 johnjelinek

@johnjelinek This looks like a fantastic replacement.

@yaru22 What do you think about SockJS?

pilwon avatar May 03 '14 21:05 pilwon

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?

yaru22 avatar May 04 '14 13:05 yaru22

Yea, I think primus + SockJS makes sense.

johnjelinek avatar May 04 '14 14:05 johnjelinek

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

ajohnclark avatar May 24 '14 13:05 ajohnclark