PHP Class PHPDaemon\SockJS\WebSocketRouteProxy

Author: Vasily Zorin ([email protected])
Inheritance: implements PHPDaemon\WebSocket\RouteInterface, use trait PHPDaemon\Traits\StaticObjectWatchdog
Datei anzeigen Open project: kakserpom/phpdaemon

Protected Properties

Property Type Description
$heartbeatTimer
$realRoute
$sockjs

Public Methods

Method Description
__call ( string $method, array $args ) : mixed __call
__construct ( Application $sockjs, $route ) __construct
__get ( string $k ) : mixed __get
onBeforeHandshake ( callable $cb ) : void | false realRoute onBeforeHandshake
onFinish ( ) : void
onFrame ( string $data, integer $type ) : void Called when new frame received.
onHandshake ( ) : void
onPacket ( $frame, integer $type ) : void onPacket
onWrite ( ) : void

Method Details

__call() public method

__call
public __call ( string $method, array $args ) : mixed
$method string
$args array
return mixed

__construct() public method

__construct
public __construct ( Application $sockjs, $route )
$sockjs Application

__get() public method

__get
public __get ( string $k ) : mixed
$k string
return mixed

onBeforeHandshake() public method

realRoute onBeforeHandshake
public onBeforeHandshake ( callable $cb ) : void | false
$cb callable
return void | false

onFinish() public method

public onFinish ( ) : void
return void

onFrame() public method

Called when new frame received.
public onFrame ( string $data, integer $type ) : void
$data string Frame's contents.
$type integer Frame's type.
return void

onHandshake() public method

public onHandshake ( ) : void
return void

onPacket() public method

onPacket
public onPacket ( $frame, integer $type ) : void
$type integer Frame's type.
return void

onWrite() public method

public onWrite ( ) : void
return void

Property Details

$heartbeatTimer protected_oe property

protected $heartbeatTimer

$realRoute protected_oe property

protected $realRoute

$sockjs protected_oe property

protected $sockjs