PHP Класс Devristo\Phpws\Server\WebSocketServer

Автор: Chris
Наследование: extends Evenement\EventEmitter
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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[]