class Thin::Connection

Attributes

websocket[RW]

Public Instance Methods

pre_process()
pre_process_with_websocket() click to toggle source
# File lib/ruby/riddl/protocols/websocket.rb, line 12
def pre_process_with_websocket
  @request.env['thin.connection'] = self
  pre_process_without_websocket
end
Also aliased as: pre_process
pre_process_without_websocket()
Alias for: pre_process
receive_data(data)
receive_data_with_websocket(data) click to toggle source
# File lib/ruby/riddl/protocols/websocket.rb, line 19
def receive_data_with_websocket(data)
  if self.websocket?
    self.websocket.receive_data(data)
  else
    receive_data_without_websocket(data)
  end
end
Also aliased as: receive_data
receive_data_without_websocket(data)
Alias for: receive_data
unbind()
Also aliased as: unbind_without_websocket
unbind_with_websocket() click to toggle source
# File lib/ruby/riddl/protocols/websocket.rb, line 29
def unbind_with_websocket
  if self.websocket?
    self.websocket.unbind
  else
    unbind_without_websocket
  end
end
Also aliased as: unbind
unbind_without_websocket()
Alias for: unbind
websocket?() click to toggle source
# File lib/ruby/riddl/protocols/websocket.rb, line 8
def websocket?
  !self.websocket.nil?
end