def callback(message): """ Callback to be invoked when a response to the START_SESSION request is received. """ Sessions.remove(session) console.write(message.SerializeToString())
def sessionList(self, message): """ Called by the runtime on receipt of a listing of active sessions from the Agent. The Sessions collection is updated with the most recent information. """ for session in message.system_response.sessions: Sessions.add_session(session.session_id, self, None)
def callback(message): """ Callback to be invoked when a response to the START_SESSION request is received. """ Sessions.add_session(message.system_response.session_id, self, console) console.write(message.SerializeToString())