JSON RPC

Direct Connection

This is a direct implementation of jsonRPC using the tcpDAT.

Read about it at Wikipedia


Methods:

Send_Request(
    method : str,  #The Method of your procedure call.
    auto_id: bool = False,    #if you want to create an automatic ID for your request.
    id : str = None,    # if auto_id is set to false, pass an ID by hand,
    params : dict = {},   #The data you want to send.
    peer = None   #the ID of the specific connected pier you want to send to.
)

Send_Response(
    id : str, #The ID of an incoming request. 
    result: dict # Calculated responseDATA
)


Send_Error(
    id : str, #The ID of an incoming request. 
    error: dict #Calculated responseDATA
)

Downloads: 108

Created at: 4.4.2023

Uploaded: 4.4.2023
Initital public release.
Download