def plugin(self, owner):
        """ Plug the Dispatcher instance into Client class instance and send initial stream header. Used internally."""
        self._init()
        for method in self._old_owners_methods:
            if method.__name__=='send': self._owner_send=method; break
        self._owner.lastErrNode=None
        self._owner.lastErr=None
        self._owner.lastErrCode=None
        self.StreamInit()
 Plug the Dispatcher instance into Client class instance and send initial stream header. Used internally.
chrome-cordova/gcmServer/xmpp/dispatcher.py