SocketIo vs NetIo

All things HTML5 or text based engines, or really any web based engines.
Post Reply
robaldred
Posts: 64
Joined: Tue Aug 27, 2013 5:54 pm

SocketIo vs NetIo

Post by robaldred »

I just wondered what the pros/cons of using either SocketIoComponent or NetIoComponent for networking along with the StreamComponent.

Thanks
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: SocketIo vs NetIo

Post by coolbloke1324 »

Net.io is faster because it does not include lots of padding byte data that socket.io does, but at the same time, Net.io is ONLY over websockets, does not support chunking so you cannot send large amounts of data all at once (a simple array of values is fine but hundreds of values is not).

Socket.io is designed for a wider target audience and not just gaming so the protocol is not as lightweight or built for efficiency but it can run over multiple transports.

Basically if you are happy with only websockets and not sending huge data objects use Net.io otherwise use socket.io.
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
robaldred
Posts: 64
Joined: Tue Aug 27, 2013 5:54 pm

Re: SocketIo vs NetIo

Post by robaldred »

Seems like NetIO will be the best choice then, I'd rather go for efficiency.
Thanks for all your hard work!
Post Reply

Return to “HTML5/Web Engines”