Changes between Version 27 and Version 28 of WikiStart


Ignore:
Timestamp:
04/30/19 09:48:12 (6 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v27 v28  
    6262 * can send JSON-formatted Action objects as requested by the agent (see the events module in genius2 core)
    6363
    64 
     64== Detecting termination of a party
     65The partiesserver does not have a separate communication protocol to hear when parties have been terminated. Instead, the PartySocket (that the partiesserver provides for communication between the party and the server) is sniffed for characteristic termination events. The following events are considered indicative for termination:
     661. The socket breaks, eg because one of the parties closes it, some network failure, etc.
     672. The socket has reached its time-out. The time-out is initially set to 3 seconds which is assumed to be ample for setting up and configuring a party. When the socket detects a Settings object being sent to the party, it sets the time-out to settings.getProgress().getTerminationTime().
     683. A "Finished" Inform object being sent to the party.
    6569
    6670== Using the source code ==