Socket.io client alternative

88 views
Skip to first unread message

Kevin Ingwersen (Ingwie Phoenix)

unread,
May 3, 2015, 9:53:56 PM5/3/15
to nod...@googlegroups.com
Hey.

Have you noticed, that - uncompressed - socket.io-client is pretty huge, actually? It almost competes with jQuery. That is why I would like to know if there is a thinner alternative to the „original“ client?

Kind regards, Ingwie.

Madhur Ahuja

unread,
May 4, 2015, 11:12:29 AM5/4/15
to nod...@googlegroups.com
Try out faye altogether




--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/319D8C7C-6A28-473F-B5F0-00ADE2D2A206%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

klrumpf

unread,
May 4, 2015, 11:12:31 AM5/4/15
to nod...@googlegroups.com

Guillermo Rauch

unread,
May 4, 2015, 5:02:28 PM5/4/15
to nod...@googlegroups.com
Starting with 1.5 we'll remove most of the legacy browser support, in a way that compatibility can still be retained through polyfilling. That said, client code build size is probably one of the last things you should be optimizing. By the time the code loads, gets parsed and the socket connects, the user could already be looking at data.
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.

Christopher Ross

unread,
May 4, 2015, 5:02:28 PM5/4/15
to nod...@googlegroups.com
you would have to check the size but you can browserify the ws module as mentioned on their page and use their client connect, the api is a little different. https://github.com/websockets/ws#browserify-users

another alternative if you are concerned about the size of the module is rolling your own, mdn actually has a nice tutorial on that. 

Reply all
Reply to author
Forward
0 new messages