def __init__(self, callback, connectionData, debugMode=False): ''' Initializes the state of the endpoint. Keyword arguments: callback -- the object that will process the incoming SSAP messages. connectionData -- the object that stores the configuration of the websocket connection. debugMode -- a flag that enables additional debug messages. ''' SSAPEndpoint.__init__(self, callback) if (debugMode) : logLevel = logging.DEBUG else: logLevel = logging.INFO self.__logger = LogFactory.configureLogger(self, logLevel, LogFactory.DEFAULT_LOG_FILE) self.__queue = GenericThreadSafeList() self.__websocket = None self.__connectionData = connectionData self.__activeSubscriptions = 0