Class: WEBSocket::Server

Inherits:
Base::Server
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/WEBSocket/Standard/server.rb,
lib/WEBSocket/Celluloid/server.rb

Instance Method Summary collapse

Constructor Details

#initialize(hostname, port) ⇒ Server

Returns a new instance of Server.


6
7
8
# File 'lib/WEBSocket/Standard/server.rb', line 6

def initialize hostname, port
  @server = TCPServer.new hostname, port
end

Instance Method Details

#evented?Boolean

Returns:

  • (Boolean)

10
11
12
# File 'lib/WEBSocket/Celluloid/server.rb', line 10

def evented?
  @server.evented?
end