PHP Class PHPDaemon\SockJS\Session

Author: Vasily Zorin ([email protected])
Inheritance: use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
Afficher le fichier Open project: kakserpom/phpdaemon

Méthodes publiques

Свойство Type Description
$addr
$appInstance
$buffer array
$cookie
$finished boolean
$flushing boolean
$framesBuffer
$get
$id
$onWrite PHPDaemon\Structures\StackCallbacks
$post
$route PHPDaemon\Request\Generic
$server
$timeout integer

Protected Properties

Свойство Type Description
$finishTimer
$onFinishedCalled
$pollMode
$running

Méthodes publiques

Méthode Description
__construct ( Application $appInstance, string $id, array $server ) : void __construct
c2s ( object $redis ) : void c2s
finish ( ) : void
flush ( ) : void Flushes buffered packets
handleException ( object $e ) : boolean | null Uncaught exception handler
onFinish ( ) : void
onFrame ( string $msg, integer $type ) : void onFrame
onHandshake ( ) : void onHandshake
onWrite ( ) : void
poll ( object $redis ) : void poll
sendFrame ( string $data, integer $type, callback $cb = null ) : boolean Sends a frame.
sendPacket ( object $pct, callable $cb = null ) : void sendPacket

Méthodes protégées

Méthode Description
toJson ( string $m ) : string toJson

Method Details

__construct() public méthode

__construct
public __construct ( Application $appInstance, string $id, array $server ) : void
$appInstance Application [@todo description]
$id string [@todo description]
$server array [@todo description]
Résultat void

c2s() public méthode

c2s
public c2s ( object $redis ) : void
$redis object
Résultat void

finish() public méthode

public finish ( ) : void
Résultat void

flush() public méthode

Flushes buffered packets
public flush ( ) : void
Résultat void

handleException() public méthode

Uncaught exception handler
public handleException ( object $e ) : boolean | null
$e object
Résultat boolean | null Handled?

onFinish() public méthode

public onFinish ( ) : void
Résultat void

onFrame() public méthode

onFrame
public onFrame ( string $msg, integer $type ) : void
$msg string [@todo description]
$type integer [@todo description]
Résultat void

onHandshake() public méthode

onHandshake
public onHandshake ( ) : void
Résultat void

onWrite() public méthode

public onWrite ( ) : void
Résultat void

poll() public méthode

poll
public poll ( object $redis ) : void
$redis object
Résultat void

sendFrame() public méthode

Sends a frame.
public sendFrame ( string $data, integer $type, callback $cb = null ) : boolean
$data string Frame's data.
$type integer Frame's type. See the constants.
$cb callback Optional. Callback called when the frame is received by client.
Résultat boolean Success.

sendPacket() public méthode

sendPacket
public sendPacket ( object $pct, callable $cb = null ) : void
$pct object [@todo description]
$cb callable [@todo description]
Résultat void

toJson() protected méthode

toJson
protected toJson ( string $m ) : string
$m string
Résultat string

Property Details

$addr public_oe property

public $addr

$appInstance public_oe property

public $appInstance

$buffer public_oe property

public array $buffer
Résultat array

$finishTimer protected_oe property

protected $finishTimer

$finished public_oe property

public bool $finished
Résultat boolean

$flushing public_oe property

public bool $flushing
Résultat boolean

$framesBuffer public_oe property

public $framesBuffer

$get public_oe property

public $get

$id public_oe property

public $id

$onFinishedCalled protected_oe property

protected $onFinishedCalled

$onWrite public_oe property

public StackCallbacks,PHPDaemon\Structures $onWrite
Résultat PHPDaemon\Structures\StackCallbacks

$pollMode protected_oe property

protected $pollMode

$post public_oe property

public $post

$route public_oe property

public Generic,PHPDaemon\Request $route
Résultat PHPDaemon\Request\Generic

$running protected_oe property

protected $running

$server public_oe property

public $server

$timeout public_oe property

public int $timeout
Résultat integer