Changes between Version 41 and Version 42 of WikiStart
- Timestamp:
- 05/02/19 14:30:03 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v41 v42 50 50 Tech 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}}} 51 51 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. 53 56 When 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. 54 57 … … 68 71 * On the server implementation provided here, the urls look like {{{http://...:8080/partiesserver/run/<party name>}}} 69 72 70 === Create new running instance of a party 73 === /running 74 /running creates new running instance of a party 71 75 When 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: 72 76 … … 91 95 3. A "Finished" Inform object being sent to the party. 92 96 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 93 101 == Using the source code == 94 102 You 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.