Reputation: 6305
I'm working on real-time multiplayer game in Android (java) and I narrowed down the my choices for bidirectional connection to WebSocket and Socket programming
My requirements are:
Base on these requirements, I would like to know which is more suitable.
Thanks.
Upvotes: 2
Views: 1507
Reputation: 35965
A WebSocket is a regular TCP socket connection that:
Origin
HTTP header among others. So for example, a Websocket connection will send the cookies that the browser has for that domain.If you do not need any of those, you may be alright with just a socket.
Upvotes: 2