Module: Wtails::WebSocket

Extended by:
WebSocket
Included in:
WebSocket
Defined in:
lib/wtails/web_socket.rb

Defined Under Namespace

Classes: Server

Constant Summary collapse

LOG_SIZE =
100

Instance Method Summary collapse

Instance Method Details

#run(opts, files) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/wtails/web_socket.rb', line 7

def run(opts, files)
  port = opts[:port]
  @servers = files.map do |file|
    port += 1
    Server.new(file, port)
  end
end

#serversObject



15
16
17
# File 'lib/wtails/web_socket.rb', line 15

def servers
  @servers ||= []
end