PHP Class Devristo\Phpws\Client\WebSocket

Inheritance: extends Evenement\EventEmitter
Datei anzeigen Open project: devristo/phpws Class Usage Examples

Protected Properties

Property Type Description
$headers
$isClosing
$logger
$loop
$request
$response
$socket
$state
$stream Devristo\Phpws\Protocol\WebSocketConnection
$streamOptions
$transport Devristo\Phpws\Protocol\WebSocketTransport
$url

Public Methods

Method Description
__construct ( $url, React\EventLoop\LoopInterface $loop, Zend\Log\LoggerInterface $logger, array $streamOptions = null )
close ( )
getState ( )
open ( $timeOut = null )
send ( $string )
sendFrame ( Devristo\Phpws\Framing\WebSocketFrameInterface $frame )
sendMessage ( Devristo\Phpws\Messaging\WebSocketMessageInterface $msg )

Method Details

__construct() public method

public __construct ( $url, React\EventLoop\LoopInterface $loop, Zend\Log\LoggerInterface $logger, array $streamOptions = null )
$loop React\EventLoop\LoopInterface
$logger Zend\Log\LoggerInterface
$streamOptions array

close() public method

public close ( )

getState() public method

public getState ( )

open() public method

public open ( $timeOut = null )

send() public method

public send ( $string )

sendFrame() public method

public sendFrame ( Devristo\Phpws\Framing\WebSocketFrameInterface $frame )
$frame Devristo\Phpws\Framing\WebSocketFrameInterface

sendMessage() public method

public sendMessage ( Devristo\Phpws\Messaging\WebSocketMessageInterface $msg )
$msg Devristo\Phpws\Messaging\WebSocketMessageInterface

Property Details

$headers protected_oe property

protected $headers

$isClosing protected_oe property

protected $isClosing

$logger protected_oe property

protected $logger

$loop protected_oe property

protected $loop

$request protected_oe property

protected $request

$response protected_oe property

protected $response

$socket protected_oe property

protected $socket

$state protected_oe property

protected $state

$stream protected_oe property

protected WebSocketConnection,Devristo\Phpws\Protocol $stream
return Devristo\Phpws\Protocol\WebSocketConnection

$streamOptions protected_oe property

protected $streamOptions

$transport protected_oe property

protected WebSocketTransport,Devristo\Phpws\Protocol $transport
return Devristo\Phpws\Protocol\WebSocketTransport

$url protected_oe property

protected $url