def __init__(self, jid, message_callback, connection_callback, connection_lost_callback=None):
    super(MessageProtocol, self).__init__()
    self.jid = jid
    self.message_callback = message_callback
    self.connection_callback = connection_callback
    self.connection_lost_callback = connection_lost_callback
def __init__(self, jid, message_callback, connection_callback, connection_lost_callback=None):
    super(MessageProtocol, self).__init__()
    self.jid = jid
    self.message_callback = message_callback
    self.connection_callback = connection_callback
    self.connection_lost_callback = connection_lost_callback