Class: WEBSocket::Base::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/WEBSocket/server.rb

Instance Method Summary collapse

Instance Method Details

#acceptObject



4
5
6
# File 'lib/WEBSocket/server.rb', line 4

def accept
  WEBSocket::AcceptedSocket.new(@server.accept).connect
end

#accept_nonblockObject



8
9
10
# File 'lib/WEBSocket/server.rb', line 8

def accept_nonblock
  WEBSocket::AcceptedSocket.new(@server.accept_nonblock).connect
end

#evented?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/WEBSocket/server.rb', line 16

def evented?
  false
end

#to_ioObject



12
13
14
# File 'lib/WEBSocket/server.rb', line 12

def to_io
  @server
end