PHP Class Thruway\Connection

Inheritance: implements Evenement\EventEmitterInterface, use trait Evenement\EventEmitterTrait
Afficher le fichier Open project: voryx/thruway Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

close() public méthode

Starts the close sequence
public close ( )

doEvents() public méthode

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

getClient() public méthode

public getClient ( ) : Client
Résultat Thruway\Peer\Client

open() public méthode

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