###Motivation
I looked for something similar on the web but did not find any very very simple standard sub protocol for calling services over websocket and getting a response. So I wrote it. Putting it there so it can be useful for others.
This API has been defined to allow different java implementation and websocket
###Protocol
- Communication using Json String
- Service defined by a name
Format:
{ "service" : "<service name of the service to call>", "data" : "<the data to give to the service>" }
or to get a response on a given service name called callback:
Format:
{ "service" : "<service name of the service to call>", "data" : "<the data to give to the service>", "callback" : "service name of the service to call to send the response" }
- javascript (client) - (should be usable for serversocket also but not tested)
- java (server) - Using org.java_websocket implementation (work on Android)
Help me continuing to work on the JSSOWS projects. Donate with PayPal.