Class: WebSocket::Server

Inherits:
Server::Server
  • Object
show all
Includes:
InstanceMethods
Defined in:
lib/websocket/server.rb

Overview

The Server class sets up the netty server

Instance Method Summary collapse

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.

Raises:

  • (ArgumentError)


23
24
25
26
# File 'lib/websocket/server.rb', line 23

def initialize(options = {}, *handlers, &block)
  raise ArgumentError, 'Parameter may not be nil: options' if options.nil?
  super(::WebSocket.server_config.merge(options), *handlers, &block)
end