PHP 클래스 Devristo\Phpws\Server\WebSocketServer

저자: Chris
상속: extends Evenement\EventEmitter
파일 보기 프로젝트 열기: devristo/phpws 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$FLASH_POLICY_FILE string Flash-policy-response for flashplayer/flashplugin
$_connections SplObjectStorage | Devristo\Phpws\Protocol\WebSocketTransportInterface[] The connected clients to the WebSocket server, a valid handshake has been performed.
$_context
$_streams Devristo\Phpws\Protocol\WebSocketConnection[] | SplObjectStorag\SplObjectStorage The raw streams connected to the WebSocket server (whether a handshake has taken place or not)
$_url
$purgeUserTimeOut
$uriHandlers Devristo\Phpws\Server\UriHandler\WebSocketUriHandlerInterface[] ..

공개 메소드들

메소드 설명
__construct ( $url, React\EventLoop\LoopInterface $loop, Zend\Log\LoggerInterface $logger ) Handle incoming messages.
bind ( ) Start the server
getConnections ( )
getStreamContext ( )
setStreamContext ( $context )

메소드 상세

__construct() 공개 메소드

Must be implemented by all extending classes
public __construct ( $url, React\EventLoop\LoopInterface $loop, Zend\Log\LoggerInterface $logger )
$url
$loop React\EventLoop\LoopInterface
$logger Zend\Log\LoggerInterface

bind() 공개 메소드

Start the server
public bind ( )

getConnections() 공개 메소드

public getConnections ( )

getStreamContext() 공개 메소드

public getStreamContext ( )

setStreamContext() 공개 메소드

public setStreamContext ( $context )

프로퍼티 상세

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

Flash-policy-response for flashplayer/flashplugin
protected string $FLASH_POLICY_FILE
리턴 string

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

The connected clients to the WebSocket server, a valid handshake has been performed.
protected SplObjectStorage|WebSocketTransportInterface[],Devristo\Phpws\Protocol $_connections
리턴 SplObjectStorage | Devristo\Phpws\Protocol\WebSocketTransportInterface[]

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

protected $_context

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

The raw streams connected to the WebSocket server (whether a handshake has taken place or not)
protected WebSocketConnection[],Devristo\Phpws\Protocol|SplObjectStorage,SplObjectStorag $_streams
리턴 Devristo\Phpws\Protocol\WebSocketConnection[] | SplObjectStorag\SplObjectStorage

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

protected $_url

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

protected $purgeUserTimeOut

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

..
protected WebSocketUriHandlerInterface[],Devristo\Phpws\Server\UriHandler $uriHandlers
리턴 Devristo\Phpws\Server\UriHandler\WebSocketUriHandlerInterface[]