PHP Class Thruway\Connection

Inheritance: implements Evenement\EventEmitterInterface, use trait Evenement\EventEmitterTrait
ファイルを表示 Open project: voryx/thruway Class Usage Examples

Public Methods

Method Description
__construct ( array $options, React\EventLoop\LoopInterface $loop = null ) Constructor
close ( ) Starts the close sequence
doEvents ( integer $timer = 1 )
getClient ( ) : Client
open ( boolean $startLoop = true ) Starts the open sequence

Private Methods

Method Description
handleOnChallenge ( ) Setup the onChallenge callback
handleOnClose ( ) Handle On Close event
handleOnError ( ) Handle On Error event
handleOnOpen ( ) Handle On Open event

Method Details

__construct() public method

Constructor
public __construct ( array $options, React\EventLoop\LoopInterface $loop = null )
$options array
$loop React\EventLoop\LoopInterface

close() public method

Starts the close sequence
public close ( )

doEvents() public method

Deprecation: Process events at a set interval
public doEvents ( integer $timer = 1 )
$timer integer

getClient() public method

public getClient ( ) : Client
return Thruway\Peer\Client

open() public method

Starts the open sequence
public open ( boolean $startLoop = true )
$startLoop boolean