svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant
Fri, 13 Mar 2020 10:36:13 +0100
branchsvghmi
changeset 2869 d9eb50c015d1
parent 728 e0424e96e3fd
permissions -rw-r--r--
SVGHMI: take care of path given in HMI:Page and HMI:Jump, but do not apply subscription offset for now. Intermediate commit in a "working" state.
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