svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant
Thu, 18 Apr 2019 14:35:42 +0200
branchfix_PLC_runtime_shutdown
changeset 2604 c8a25a3a7f8b
parent 728 e0424e96e3fd
permissions -rw-r--r--
Runtime worker : unblock the last waiting job and prevent any new job to wait when Main Worker is being shut down.
These classes are intended for use server-side.

e.g. in a django view.py :

    from pyjs.jsonrpc.django import JSONService, jsonremote

    jsonservice = JSONRPCService()

    @jsonremote(jsonservice)
    def test(request, echo_param):
         return "echoing the param back: %s" % echo_param