Ocean ServerFactory - lapis25/study-ocean GitHub Wiki

new(objectの生成のみ)

create_server

  • config->get(server => type) # xmpp (xmpp or websocket or http-websocket or http-sse or http-xhr)

component_factory

$component_factory = _create_server_component_factory($type)

$builder->* set

  • content $component_factory->create_context
  • event_dispatcher $component_factory->create_event_dispatcher
  • stream_manager $component_factory->create_stream_manager
  • stream_factory $component_factory->create_stream_factory
  • listener $component_factory->create_listener
  • daemonizer $component_factory->create_daemonizer
  • signal_handler $component_factory->create_signal_handler
  • timer $component_factory->create_timer

$builder->build: return Ocean::Server

⚠️ **GitHub.com Fallback** ⚠️