Changes between Version 19 and Version 20 of WikiStart
- Timestamp:
- 03/11/19 13:05:55 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v19 v20 27 27 28 28 29 = Communication protocol=30 Th e parties server is a component in the bigger genius2 framework. Its mains function are29 = Technical insides = 30 This section deals with the techniques inside the parties server and may be relevant when you need to communicate directly with it, e.g. when you build your own GUI or start up your own parties from a script. 31 31 32 1. Provide a list of available parties on the server 33 2. Create a running instance of a party on request 32 == Communication protocol 33 The parties server is a component in the bigger genius2 framework. Its mains function are discussed in the following subsections. Other implementations of a partiesserver should adhere to the same communication protocols to ensure compatibility with genius2. 34 34 35 @1 TODO describe PartiesListSocket protocol. 35 === Provide a list of available parties on the server 36 When a client accesses the partiesserver at ws:partiesserver/websocket/available, a websocket is created. This websocket sends the parties list as a JSON list, each list element containing a GeneralPartyInfo object. 36 37 37 @2 38 A GeneralPartyInfo object contains the following: 39 {{{ 40 URI uri; 41 genius2.party.Capabilities capabilities; 42 String description; 43 }}} 44 45 These fields are automatically generated from the parties contained in the jar files in the {{{partiesserver/partiesrepo}}} directory that was mentioned above. 46 47 A new list is sent over the websocket every time the list changes. 48 49 === Create new running instance of a party 50 The following steps are needed to create a new running instance of a party. 51 38 52 * create an running instance of a party when a certain address on the server is requested 39 53 * It then returns the address of a a websocket on which the party can be contacted. Usually this websocket will be on the same computer, but it might be elsewhere)