Skip to content

JSSOWS/jssows-java-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jssows-java-api

###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"
}

Implementations

  1. javascript (client) - (should be usable for serversocket also but not tested)
  2. java (server) - Using org.java_websocket implementation (work on Android)

Donate !

Help me continuing to work on the JSSOWS projects. Donate with PayPal.

About

Json Standard Services Over WebSocket Java API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages