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.6"
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
33 34 35 |
# File 'lib/jstp.rb', line 33 def self.config &block block.call Configuration.instance end |