Sha256: 69692ffa4c639154c8f00cb9655ccc3786a6a9e71fdddc3ffe63d5d2aee442a8
Contents?: true
Size: 646 Bytes
Versions: 4
Compression:
Stored size: 646 Bytes
Contents
# encoding: UTF-8 module Vines class Stream class Client class BindRestart < State def initialize(stream, success=Bind) super end def node(node) raise StreamErrors::NotAuthorized unless stream?(node) stream.start(node) doc = Document.new features = doc.create_element('stream:features') do |el| el << doc.create_element('bind', 'xmlns' => NAMESPACES[:bind]) el << doc.create_element('session', 'xmlns' => NAMESPACES[:session]) end stream.write(features) advance end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems