Changes between Version 19 and Version 20 of WikiStart


Ignore:
Timestamp:
03/11/19 13:05:55 (6 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v19 v20  
    2727
    2828
    29 = Communication protocol =
    30 The parties server is a component in the bigger genius2 framework. Its mains function are
     29= Technical insides =
     30This 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.
    3131
    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
     33The 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.
    3434
    35 @1 TODO describe PartiesListSocket protocol.
     35=== Provide a list of available parties on the server
     36When 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.
    3637
    37 @2
     38A GeneralPartyInfo object contains the following:
     39{{{
     40        URI                        uri;
     41        genius2.party.Capabilities capabilities;
     42        String                     description;
     43}}}
     44
     45These fields are automatically generated from the parties contained in the jar files in the {{{partiesserver/partiesrepo}}} directory that was mentioned above.
     46
     47A new list is sent over the websocket every time the list changes.
     48
     49=== Create new running instance of a party
     50The following steps are needed to create a new running instance of a party.
     51
    3852* create an running instance of a party when a certain address on the server is requested
    3953* 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)