Jycraft / jycraft

Extend Minecraft servers with Python using Jython.
BSD 3-Clause "New" or "Revised" License
13 stars 2 forks source link

Use JSON over websocket #3

Closed pauleveritt closed 8 years ago

pauleveritt commented 8 years ago

I'd like us to adopt a convention where the payload for messages, incoming and outgoing, is expected to be conformant JSON. I currently have to adopt a string parser to read parts of the responses, to determine how to dispatch.

The semantics of the JSON is something we can discuss in a separate ticket. For example, a number of systems expect messages to be organized into "channels". We could do that in the payload, or we could later do that in the websocket URI. But that can be a different discussion.

AngelMunoz commented 8 years ago

since we have json over the websocket and we're discusing the semantics in another ticket I will close this