BurtonAlgorithms / weMessage

An app that brings iMessage to Android devices.
https://wemessageapp.com
GNU Affero General Public License v3.0
206 stars 28 forks source link

Server API Documentation #17

Open heywoodlh opened 5 years ago

heywoodlh commented 5 years ago

First off, thanks for an amazing product.

Is there any generic documentation on the server API? I'm sure people (myself included) would love to write their own clients for WeMessage that wasn't limited to just Android.

marchharesoftware commented 5 years ago

I 'second' that. Documentation of the protool used between the 'device' and the 'server' would be awesome.

For anyone wanting to reverse engineer it, the main recieve loop (after device authenticaiton) is here.

The source code refers to the tokens receievd from the device (weMessage for Android) as 'object' - which is an overloaded word in English, so I dislike it. But I can completely understand why the author did that. Because tall the 'better' words are taken with other meanings already, eg:

So here is the list of 'objects' and their 'sub-objects' and 'sub-sub-objects' based on a quick read of the source code:

Obvjously those 'objects' are common between the server and client, so of course the code is in 'commons/connection'.

And useful constants are here (of course).