class FakeWireServer::SocketSession

Public Class Methods

new(socket, protocol, delays, on_message) click to toggle source
# File features/support/fake_wire_server.rb, line 37
def initialize(socket, protocol, delays, on_message)
  @socket = socket
  @protocol = protocol
  @delays = delays
  @on_message = on_message
end

Public Instance Methods

start() click to toggle source
# File features/support/fake_wire_server.rb, line 44
def start
  while message = @socket.gets
    handle(message)
  end
end