Module: EventMachine::Wssh::Client::Stdio

Defined in:
lib/em/wssh/client.rb

Instance Method Summary collapse

Instance Method Details

#initialize(ws) ⇒ Object



71
72
73
# File 'lib/em/wssh/client.rb', line 71

def initialize ws
  @ws = ws
end

#receive_data(data) ⇒ Object



75
76
77
# File 'lib/em/wssh/client.rb', line 75

def receive_data data
  @ws.queue data.unpack 'C*'
end

#unbindObject



79
80
81
# File 'lib/em/wssh/client.rb', line 79

def unbind
  @ws.bye
end