Page 1 of 1
SocketIo vs NetIo
Posted: Tue Sep 03, 2013 11:31 am
by robaldred
I just wondered what the pros/cons of using either SocketIoComponent or NetIoComponent for networking along with the StreamComponent.
Thanks
Re: SocketIo vs NetIo
Posted: Wed Sep 04, 2013 5:48 pm
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.
Re: SocketIo vs NetIo
Posted: Thu Sep 05, 2013 2:01 pm
by robaldred
Seems like NetIO will be the best choice then, I'd rather go for efficiency.
Thanks for all your hard work!