PHP Class Devristo\Phpws\Client\WebSocket

Inheritance: extends Evenement\EventEmitter
Show file 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 property

protected $headers

$isClosing protected property

protected $isClosing

$logger protected property

protected $logger

$loop protected property

protected $loop

$request protected property

protected $request

$response protected property

protected $response

$socket protected property

protected $socket

$state protected property

protected $state

$stream protected property

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

$streamOptions protected property

protected $streamOptions

$transport protected property

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

$url protected property

protected $url