MAPIServiceWithSignalR base class
Bases: MAPIService
Manage signalR hub from MAPI services
Source code in restmapi\restmapi\services.py
__init__(url, hubName)
Construct a MAPIServiceWithSignalR from its base url and hub name.
Parameters:
-
url(string) –Base url from the service, by default the url is construct using MAPI registry parameters or "http://localhost:80" if the registry is not found. -
hubName(string) –The signalR hub of the MAPI service.
Source code in restmapi\restmapi\services.py
get_signalr_hub_url()
Returns the signalr path of the MAPI service
Returns:
-
string–Signalr path
handle_signalr()
Internal thread method that manages the signalr communication
Source code in restmapi\restmapi\services.py
init_signalr()
Call init_signalr if you intend to use the signalr hub. Used with keyword on the MAPIServiceWithSignalR to be sure that the communication is closed at the end