Changes between Version 41 and Version 42 of WikiStart


Ignore:
Timestamp:
05/02/19 14:30:03 (6 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v41 v42  
    5050Tech note: on the /run/<party name> requirement, we need this format {{{/run/<party>}}} so that we can extract the context path from a given party reference. This is needed because Genius2 internally passes around only party references. However some services need to access the other services, particularly {{{/free}}}
    5151
    52 === Provide a list of available parties on the server
     52
     53
     54=== /available
     55/available provide a list of available parties on the server.
    5356When a client accesses the partiesserver at {{{ws:...partiesserver/websocket/available}}}, a websocket is created. This websocket sends the clients list as a JSON list, each list element containing a GeneralPartyInfo object.
    5457
     
    6871* On the server implementation provided here, the urls look like {{{http://...:8080/partiesserver/run/<party name>}}}
    6972
    70 === Create new running instance of a party
     73=== /running
     74/running creates new running instance of a party
    7175When a client does a http get with an URI as provided in the GeneralPartyInfo field above, the server tries to create a running instance of that party. There are two possible responses from the party server:
    7276
     
    91953. A "Finished" Inform object being sent to the party.
    9296
     97=== /free
     98
     99/free is just a plain (non-websocket) connection that immediately returns an integer number with the number of available slots for running new party instances at this moment.
     100
    93101== Using the source code ==
    94102You can download the source repository of rhe java implementation. Note that you don't need this if you just want to use the parties server to host your parties or to compile parties.