Advantages of Socket.IO

687 views
Skip to first unread message

daniel

unread,
Jun 18, 2011, 5:32:29 PM6/18/11
to Socket.IO
Hello everybody,

I'm new to Node.js and Socket.IO and I played a bit with it.

But I am wondering about the differences between the net class and
socket.io at the server side.
Are there any advantages at socket.io? Or can I also use the net class
at the server and at client side socket.io?

Guillermo Rauch

unread,
Jun 18, 2011, 7:53:32 PM6/18/11
to sock...@googlegroups.com
Socket.IO is like the net class, but it enables communication between a node.js server and a browser. And that browser can be any browser :)

--
Guillermo Rauch
LearnBoost CTO
http://devthought.com

Hugo

unread,
Jun 18, 2011, 6:42:56 PM6/18/11
to sock...@googlegroups.com
i think the net mudle is just for tcp purposes.
socket.io is for http purposes
--
Att,
Hugo Freitas
twitter:@hugufc

daniel

unread,
Jun 19, 2011, 3:26:29 AM6/19/11
to sock...@googlegroups.com
Yeah, thats the client, right? I read about the feature that you use websockets and if they are not available you use flash/long time polling etc.

But was I ment: If I build a server with node.js and I use the net class, are there any differences to socket.io?

Thanks for your answer!
Reply all
Reply to author
Forward
0 new messages