PHP Класс Sulu\Component\Websocket\RatchetAppManager

Наследование: implements Sulu\Component\Websocket\AppManagerInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( integer $port, string $httpHost = 'localhost', string $ipAddress = '127.0.0.1', React\EventLoop\LoopInterface $loop = null )
add ( $route, Sulu\Component\Websocket\WebsocketAppInterface $app, $allowedOrigins = ['*'], $httpHost = null )
getApp ( $name )
getApps ( )
getHttpHost ( )
getIpAddress ( )
getLoop ( ) : React\EventLoop\LoopInterface Return used event loop if null default loop will be created.
getPort ( )
run ( )

Описание методов

__construct() публичный Метод

public __construct ( integer $port, string $httpHost = 'localhost', string $ipAddress = '127.0.0.1', React\EventLoop\LoopInterface $loop = null )
$port integer Port to listen on. If 80, assuming production, Flash on 843 otherwise expecting Flash to be proxied through 8843
$httpHost string HTTP hostname clients intend to connect to. MUST match JS `new WebSocket('ws://$httpHost');`
$ipAddress string IP address to bind to. Default is localhost/proxy only. '0.0.0.0' for any machine
$loop React\EventLoop\LoopInterface Specific React\EventLoop to bind the application to. null will create one for you

add() публичный Метод

public add ( $route, Sulu\Component\Websocket\WebsocketAppInterface $app, $allowedOrigins = ['*'], $httpHost = null )
$app Sulu\Component\Websocket\WebsocketAppInterface

getApp() публичный Метод

public getApp ( $name )

getApps() публичный Метод

public getApps ( )

getHttpHost() публичный Метод

public getHttpHost ( )

getIpAddress() публичный Метод

public getIpAddress ( )

getLoop() публичный Метод

Return used event loop if null default loop will be created.
public getLoop ( ) : React\EventLoop\LoopInterface
Результат React\EventLoop\LoopInterface

getPort() публичный Метод

public getPort ( )

run() публичный Метод

public run ( )