Свойство | Type | Description | |
---|---|---|---|
$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[] | .. |
Méthode | Description | |
---|---|---|
__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 | ||
Résultat | string |
protected SplObjectStorage|WebSocketTransportInterface[],Devristo\Phpws\Protocol $_connections | ||
Résultat | SplObjectStorage | Devristo\Phpws\Protocol\WebSocketTransportInterface[] |
protected WebSocketConnection[],Devristo\Phpws\Protocol|SplObjectStorage,SplObjectStorag $_streams | ||
Résultat | Devristo\Phpws\Protocol\WebSocketConnection[] | SplObjectStorag\SplObjectStorage |