Currently I am developing a multiplayer game for Android which can be played between 4 players. The online module with Socket.IO
and Node.js
in fully functional. Now i'm into developing the same via Wifi or Hotspot. With the help of NSD I did managed to discover the ips and ports available services. With the help of ServerSocket
connected to another device. As I am a rookie in Java Programming I'm not confident about managing the the connection consistent.
- Is there any libraries or samples available to look into, like the
Socket.IO
I used in online connectivity. - How can I manage the connection to other 3 devices at the same time in Socket
This game is developing in iOS also, they managed socket connection using GCDAsyncSocket