Свойство | Тип | Описание | |
---|---|---|---|
$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 ) |
public __construct ( $url, React\EventLoop\LoopInterface $loop, Zend\Log\LoggerInterface $logger ) | ||
$url | ||
$loop | React\EventLoop\LoopInterface | |
$logger | Zend\Log\LoggerInterface |
protected string $FLASH_POLICY_FILE | ||
Результат | string |
protected SplObjectStorage|WebSocketTransportInterface[],Devristo\Phpws\Protocol $_connections | ||
Результат | SplObjectStorage | Devristo\Phpws\Protocol\WebSocketTransportInterface[] |
protected WebSocketConnection[],Devristo\Phpws\Protocol|SplObjectStorage,SplObjectStorag $_streams | ||
Результат | Devristo\Phpws\Protocol\WebSocketConnection[] | SplObjectStorag\SplObjectStorage |