def _init(self):
        """ Registers default namespaces/protocols/handlers. Used internally.  """
        self.RegisterNamespace('unknown')
        self.RegisterNamespace(NS_STREAMS)
        self.RegisterNamespace(self._owner.defaultNamespace)
        self.RegisterProtocol('iq',Iq)
        self.RegisterProtocol('presence',Presence)
        self.RegisterProtocol('message',Message)
        self.RegisterDefaultHandler(self.returnStanzaHandler)
        self.RegisterHandler('error',self.streamErrorHandler,xmlns=NS_STREAMS)
 Registers default namespaces/protocols/handlers. Used internally.  
chrome-cordova/gcmServer/xmpp/dispatcher.py