def __init__(self, connection, identifier):
        """
        :param connection: The connection which is used to subscribe.
        :param identifier: (Optional) Additional identifier information.
        """
        self.uuid = str(uuid.uuid1())

        self.connection = connection
        self.identifier = identifier
        
        self.receive_callback = None

        self.state = 'unsubcribed'
        self.message_queue = []

        self.logger = logging.getLogger('ActionCable Subscription ({})'.format(self.identifier))

        self.connection.subscriptions[self.uuid] = self
def __init__ ( self , connection , identifier ) : self . uuid = str ( uuid . uuid1 ( ) ) self . connection = connection self . identifier = identifier self . receive_callback = None self . state = 'unsubcribed' self . message_queue = [ ] self . logger = logging . getLogger ( 'ActionCable Subscription ({})' . format ( self . identifier ) ) self . connection . subscriptions [ self . uuid ] = self
:param connection: The connection which is used to subscribe.
        :param identifier: (Optional) Additional identifier information.