Class: WebSocket::Server
- Includes:
- InstanceMethods
- Defined in:
- lib/websocket/server.rb
Overview
The Server class sets up the netty server
Instance Method Summary collapse
-
#initialize(options = {}, *handlers, &block) ⇒ Server
constructor
A new instance of Server.
Methods included from InstanceMethods
#<<, #add_listener, #bootstrap, #boss_group, #channel_group, #channel_initializer, #configure_handlers, #logging_handler, #port, #run, #shutdown, #stop, #worker_group
Constructor Details
#initialize(options = {}, *handlers, &block) ⇒ Server
Returns a new instance of Server.
23 24 25 26 |
# File 'lib/websocket/server.rb', line 23 def initialize( = {}, *handlers, &block) raise ArgumentError, 'Parameter may not be nil: options' if .nil? super(::WebSocket.server_config.merge(), *handlers, &block) end |