Ocean ServerFactory - lapis25/study-ocean GitHub Wiki
- config->get(server => type) # xmpp (xmpp or websocket or http-websocket or http-sse or http-xhr)
- xmpp => 'Ocean::ServerComponentFactory::Default',
- websocket => 'Ocean::ServerComponentFactory::WebSocket',
- http-websocket => 'Ocean::ServerComponentFactory::HTTPBinding::WebSocket',
- http-sse => 'Ocean::ServerComponentFactory::HTTPBinding::SSE',
- http-xhr => 'Ocean::ServerComponentFactory::HTTPBinding::XHR',
$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