class Socket2me::Configuration

Attributes

logger[W]

@param [Logger] logger to use

ws_host[RW]

@attr [String] ws_host for the WebSocket listener

ws_port[RW]

@attr [String] ws_port for the WebSocket listener

Public Class Methods

new() click to toggle source
# File lib/socket2me/configuration.rb, line 11
def initialize
  @ws_host = '0.0.0.0'
  @ws_port = '3001'
end

Public Instance Methods

logger() click to toggle source

@return [Logger] a basic STDOUT logger if one hasn't been set

# File lib/socket2me/configuration.rb, line 17
def logger
  @logger ||= Logger.new(STDOUT)
end