jonkirkman / tronhub

Server to coordinate awesome light-cycle battles between remote clients
MIT License
3 stars 1 forks source link

Use a standard messaging format / protocol #3

Open jonkirkman opened 9 years ago

jonkirkman commented 9 years ago

How should messages between the client and server be formatted? The format should be framework agnostic and well supported across many languages.

Some such formats / protocols:

billmccord commented 9 years ago

Highly recommend you look at SockJS also: Socket.io vs SockJS http://www.quora.com/Sock-js/What-are-the-pros-and-cons-of-socket-io-vs-sockjs http://xsnippet.org/359042/ https://groups.google.com/forum/#!topic/sockjs/lgzxVnlth54

And although this was written for Python, there is some very good discussions and design patterns for doing real-time apps. Worth reading: http://mrjoes.github.io/2013/06/21/python-realtime.html