Sha256: 9c21e3b60346d54edb3d3c2af7e135e24a7477c1996159d03b50d5c260757fa4

Contents?: true

Size: 426 Bytes

Versions: 27

Compression:

Stored size: 426 Bytes

Contents

# encoding: UTF-8

module Vines
  class Stream
    class Server
      class FinalRestart < State
        def initialize(stream, success=Ready)
          super
        end

        def node(node)
          raise StreamErrors::NotAuthorized unless stream?(node)
          stream.start(node)
          stream.write('<stream:features/>')
          stream.router << stream
          advance
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 4 rubygems

Version Path
vinesmod-0.4.5 lib/vines/stream/server/final_restart.rb
vines-0.4.5 lib/vines/stream/server/final_restart.rb
vines-0.4.4 lib/vines/stream/server/final_restart.rb
vines-0.4.3 lib/vines/stream/server/final_restart.rb
vines-0.4.2 lib/vines/stream/server/final_restart.rb
vines-0.4.1 lib/vines/stream/server/final_restart.rb
vines-0.4.0 lib/vines/stream/server/final_restart.rb