Example #1
0
    def _finish_connection(self, client):
        client.connect()

        connection_id = "moduleObject_" + str(self.object_count)
        self.object_count += 1
        self.object_map[connection_id] = client
        return ConnectResponse(connection_id)
 def _finish_connection(self, internal):
     connection_id = "deviceObject_" + str(self.object_count)
     self.object_count += 1
     self.object_map[connection_id] = internal
     return ConnectResponse(connection_id)
Example #3
0
 def _return_connect_response(self, internal):
     connection_id = "moduleObject_" + str(self.object_count)
     self.object_count += 1
     self.object_map[connection_id] = internal
     return ConnectResponse(connection_id)