X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=PROTOCOL;h=d545df489e9a959fd66d57311c62c9d58b0ac2e3;hb=2424ec60b95e210da9bd8152aca869e604184bff;hp=2f9c22f9558d2c66fb91d4b88640ff7d9a691311;hpb=5ca759f28d681f9c8cf954655571cc9963c27b04;p=pazpar2-moved-to-github.git diff --git a/PROTOCOL b/PROTOCOL index 2f9c22f..d545df4 100644 --- a/PROTOCOL +++ b/PROTOCOL @@ -18,6 +18,23 @@ Response example: 2044502273 +ping + +Keeps a session alive. An idle session will time out after one minute. The +ping command can be used to keep the session alive absent other activity. It +is suggested that any browser client have a simple alarm handler which +sends a ping every 50 seconds or so once a session has been initialized. + +Example: + +search.pz?command=ping&session=2044502273 + +Response example: + + + OK + + search Launches a search, parameters: @@ -70,6 +87,11 @@ parameters: session start -- 0-indexed!! num -- default=20 +block -- 0 or 1 + +If block is set, the command will hang until there are records ready +to display. Use this to show first records rapidly without requiring rapid +polling. Example: