svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant
Wed, 11 Sep 2019 12:24:30 +0200
branchsvghmi
changeset 2771 361366b891ca
parent 728 e0424e96e3fd
permissions -rw-r--r--
WIP on svghmi, now builds and runs. HTTP serving + WS transport ready, missing actual data to transmit and thread to collect it.
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