Class: Vines::Stream::Component::Handshake
- Inherits:
-
State
- Object
- State
- Vines::Stream::Component::Handshake
show all
- Defined in:
- lib/vines/stream/component/handshake.rb
Constant Summary
Constants inherited
from State
State::BODY, State::STREAM
Instance Attribute Summary
Attributes inherited from State
#stream
Instance Method Summary
collapse
Methods inherited from State
#==, #eql?, #hash
Methods included from Log
#log
Constructor Details
#initialize(stream, success = Ready) ⇒ Handshake
7
8
9
|
# File 'lib/vines/stream/component/handshake.rb', line 7
def initialize(stream, success=Ready)
super
end
|
Instance Method Details
#node(node) ⇒ Object
11
12
13
14
15
16
|
# File 'lib/vines/stream/component/handshake.rb', line 11
def node(node)
raise StreamErrors::NotAuthorized unless handshake?(node)
stream.write('<handshake/>')
stream.router << stream
advance
end
|