Method: Relay#initialize
- Defined in:
- lib/relay.rb
#initialize(side, logproc) ⇒ Relay
Returns a new instance of Relay.
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/relay.rb', line 2 def initialize(side, logproc) super pause @ws = nil @sig = nil @completion = nil @closed = false @unbind_sent = false @unbind_recv = false @remote_ip = nil @connection_inactivity_timeout = 0.0 @log = lambda { |msg, **ctx| logproc[msg, side: side, ip: @remote_ip, sig: @sig, **ctx] } end |