PHP 클래스 Sulu\Component\Websocket\RatchetAppManager

상속: implements Sulu\Component\Websocket\AppManagerInterface
파일 보기 프로젝트 열기: sulu/sulu

공개 메소드들

메소드 설명
__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 ( )