rtCommon.wsRemoteService

An RPC server base class for encapsulating a service class and receiving requests that will call that encapsulated class. This is part of a remote service that communicates with the projectServer.

Module Contents

Classes

WsRemoteService

Functions

isNativeType(var)

parseConnectionArgs()

class rtCommon.wsRemoteService.WsRemoteService(args, channelName)
remoteHandler
commLock
shouldExit = False
addHandlerClass(self, classType, classInstance)

Register the class that will handle the received requests via the class type

addHandlerClassName(self, className, classInstance)

Register the class that will handle the received requests via the class name

runForever(self)

Run the receiver loop. This function doesn’t return.

static stop()
static send_response(client, response)
static handle_request(client, message)

Handle requests from the projectServer. It will call the registered handler to process the request and then return the result back to the projectServer.

static on_message(client, message)

Main message dispatcher that will get a request from projectServer and start a thread to handle the request.

static on_error(client, error)
static on_close(client, code, reason)
rtCommon.wsRemoteService.isNativeType(var)
rtCommon.wsRemoteService.parseConnectionArgs()