Module: JSTP
- Defined in:
- lib/jstp.rb,
lib/jstp/engine.rb,
lib/jstp/version.rb,
lib/jstp/dispatch.rb,
lib/jstp/controller.rb,
lib/jstp/configuration.rb
Overview
Node for the JSTP protocol. Reference implementation in Ruby
Defined Under Namespace
Classes: Configuration, Controller, Dispatch, Engine
Constant Summary collapse
- VERSION =
"1.3.4"
Class Method Summary collapse
-
.config(&block) ⇒ Object
Configure the JSTP node.
Class Method Details
.config(&block) ⇒ Object
Configure the JSTP node. Usage:
JSTP.config do |config|
config.port :inbound => 33333, :outbound => 33333
config.strategy :inbound => :tcp, :outbound => :websocket
config.logger Logger.new $stdout
config.hostname `hostname`
config.gateway true
end
34 35 36 |
# File 'lib/jstp.rb', line 34 def self.config &block block.call Configuration.instance end |