I just wondered what the pros/cons of using either SocketIoComponent or NetIoComponent for networking along with the StreamComponent.
Thanks
SocketIo vs NetIo
- coolbloke1324
- Posts: 181
- Joined: Mon Jan 23, 2012 5:20 pm
Re: SocketIo vs NetIo
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.
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
Seems like NetIO will be the best choice then, I'd rather go for efficiency.
Thanks for all your hard work!
Thanks for all your hard work!