PHP 클래스 Sulu\Component\Websocket\AbstractWebsocketApp

상속: implements Sulu\Component\Websocket\WebsocketAppInterface
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$name string

공개 메소드들

메소드 설명
__construct ( Doctrine\Common\Cache\Cache $contextsCache ) initialize clients container.
__toString ( )
getName ( )
onClose ( Ratchet\ConnectionInterface $conn )
onError ( Ratchet\ConnectionInterface $conn, Exception $e )
onOpen ( Ratchet\ConnectionInterface $conn )

보호된 메소드들

메소드 설명
createContext ( Ratchet\ConnectionInterface $conn ) : Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface Returns new created websocket context object.
getContext ( Ratchet\ConnectionInterface $conn ) : Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface Returns websocket context for given connection.
saveContext ( Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface $context ) Saves websocket context.

메소드 상세

__construct() 공개 메소드

initialize clients container.
public __construct ( Doctrine\Common\Cache\Cache $contextsCache )
$contextsCache Doctrine\Common\Cache\Cache

__toString() 공개 메소드

public __toString ( )

createContext() 보호된 메소드

Returns new created websocket context object.
protected createContext ( Ratchet\ConnectionInterface $conn ) : Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface
$conn Ratchet\ConnectionInterface
리턴 Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface

getContext() 보호된 메소드

Returns websocket context for given connection.
protected getContext ( Ratchet\ConnectionInterface $conn ) : Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface
$conn Ratchet\ConnectionInterface
리턴 Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface

getName() 공개 메소드

public getName ( )

onClose() 공개 메소드

public onClose ( Ratchet\ConnectionInterface $conn )
$conn Ratchet\ConnectionInterface

onError() 공개 메소드

public onError ( Ratchet\ConnectionInterface $conn, Exception $e )
$conn Ratchet\ConnectionInterface
$e Exception

onOpen() 공개 메소드

public onOpen ( Ratchet\ConnectionInterface $conn )
$conn Ratchet\ConnectionInterface

saveContext() 보호된 메소드

Saves websocket context.
protected saveContext ( Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface $context )
$context Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface

프로퍼티 상세

$name 보호되어 있는 프로퍼티

protected string $name
리턴 string