Class: WebSocket::TelnetProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/websocket/telnet_proxy.rb

Overview

The TelnetProxy class adds a handler to the server channel pipeline which will proxy incoming requests to a telnet server.

Instance Method Summary collapse

Constructor Details

#initialize(host, port) ⇒ TelnetProxy

Returns a new instance of TelnetProxy.



18
19
20
# File 'lib/websocket/telnet_proxy.rb', line 18

def initialize(host, port)
  pipeline << TelnetProxyFrontendHandler.new(host, port)
end