Module: Vizcore::Server

Defined in:
lib/vizcore/server.rb,
lib/vizcore/server/runner.rb,
lib/vizcore/server/rack_app.rb,
lib/vizcore/server/gallery_app.rb,
lib/vizcore/server/gallery_page.rb,
lib/vizcore/server/gallery_runner.rb,
lib/vizcore/server/frame_broadcaster.rb,
lib/vizcore/server/websocket_handler.rb,
lib/vizcore/server/scene_dependency_watcher.rb

Overview

Rack/WebSocket server runtime namespace.

Defined Under Namespace

Classes: FrameBroadcaster, GalleryApp, GalleryPage, GalleryRunner, RackApp, Runner, SceneDependencyWatcher, WebSocketHandler

Class Method Summary collapse

Class Method Details

.start(config = nil, output: $stdout, **options) ⇒ void

This method returns an undefined value.

Start a Vizcore server from Ruby code.

Parameters:

  • config (Vizcore::Config, Hash, nil) (defaults to: nil)

    runtime config or Config keyword options

  • output (#puts) (defaults to: $stdout)

    stream used by the runner

  • options (Hash)

    Config keyword options when ‘config` is nil



14
15
16
17
# File 'lib/vizcore/server.rb', line 14

def self.start(config = nil, output: $stdout, **options)
  runtime_config = start_config(config, options)
  Runner.new(runtime_config, output: output).run
end