AquiGorka / kickoff

A multiplayer real-time turn-based soccer HTML5 game for virtual reality.
MIT License
2 stars 0 forks source link

Setup socket server #3

Closed AquiGorka closed 7 years ago

AquiGorka commented 7 years ago

Run a socket server to expose interface

AquiGorka commented 7 years ago

The framework chosen for the http server (Iris) can implement websockets very easily (one of the reasons for choosing it in the first place).

With Go I could implement a TCP socket server (might be faster, not sure) but a complete websocket implementation (like the one that comes with Iris) will add all the methods and checks that would have to be implemented if actually going via the TCP socket server route, so that is a free given.

Conclusion: websockets with Iris.