PHP Class PHPDaemon\SockJS\Methods\Generic

Author: Vasily Zorin ([email protected])
Inheritance: extends PHPDaemon\HTTPRequest\Generic
Datei anzeigen Open project: kakserpom/phpdaemon Class Usage Examples

Protected Properties

Property Type Description
$allowedMethods
$bytesSent
$cacheable
$callbackParamEnabled
$errors
$frames
$gcEnabled
$heartbeatOnFinish
$heartbeatTimer
$opts
$path
$poll
$pollMode
$serverId
$sessId
$stage
$stopped

Public Methods

Method Description
afterHeaders ( ) : void afterHeaders
gcCheck ( ) : void gcCheck
init ( ) : void Constructor
internalServerError ( ) : void internalServerError
onFinish ( ) : void On finish
out ( string $s, boolean $flush = true ) : boolean Output some data
outputFrame ( string $s, boolean $flush = true ) : boolean Output some data
run ( ) : void Called when request iterated
s2c ( object $redis ) : void s2c
stop ( ) : void Stop
w8in ( ) : void w8in

Protected Methods

Method Description
CORS ( ) : void CORS
acquire ( callable $cb ) : void acquire
anotherConnectionStillOpen ( ) : void anotherConnectionStillOpen
contentType ( string $type ) : void contentType
error ( integer $code ) : void error
noncache ( ) : void noncache
poll ( callable $cb = null ) : void Poll
sendFrame ( string $frame ) : void Send frame

Method Details

CORS() protected method

CORS
protected CORS ( ) : void
return void

acquire() protected method

acquire
protected acquire ( callable $cb ) : void
$cb callable
return void

afterHeaders() public method

afterHeaders
public afterHeaders ( ) : void
return void

anotherConnectionStillOpen() protected method

anotherConnectionStillOpen
protected anotherConnectionStillOpen ( ) : void
return void

contentType() protected method

contentType
protected contentType ( string $type ) : void
$type string Content-Type
return void

error() protected method

error
protected error ( integer $code ) : void
$code integer
return void

gcCheck() public method

gcCheck
public gcCheck ( ) : void
return void

init() public method

Constructor
public init ( ) : void
return void

internalServerError() public method

internalServerError
public internalServerError ( ) : void
return void

noncache() protected method

noncache
protected noncache ( ) : void
return void

onFinish() public method

On finish
public onFinish ( ) : void
return void

out() public method

Output some data
public out ( string $s, boolean $flush = true ) : boolean
$s string String to out
$flush boolean
return boolean Success

outputFrame() public method

Output some data
public outputFrame ( string $s, boolean $flush = true ) : boolean
$s string String to out
$flush boolean
return boolean Success

poll() protected method

Poll
protected poll ( callable $cb = null ) : void
$cb callable
return void

run() public method

Called when request iterated
public run ( ) : void
return void

s2c() public method

s2c
public s2c ( object $redis ) : void
$redis object
return void

sendFrame() protected method

Send frame
protected sendFrame ( string $frame ) : void
$frame string
return void

stop() public method

Stop
public stop ( ) : void
return void

w8in() public method

w8in
public w8in ( ) : void
return void

Property Details

$allowedMethods protected_oe property

protected $allowedMethods

$bytesSent protected_oe property

protected $bytesSent

$cacheable protected_oe property

protected $cacheable

$callbackParamEnabled protected_oe property

protected $callbackParamEnabled

$errors protected_oe property

protected $errors

$frames protected_oe property

protected $frames

$gcEnabled protected_oe property

protected $gcEnabled

$heartbeatOnFinish protected_oe property

protected $heartbeatOnFinish

$heartbeatTimer protected_oe property

protected $heartbeatTimer

$opts protected_oe property

protected $opts

$path protected_oe property

protected $path

$poll protected_oe property

protected $poll

$pollMode protected_oe property

protected $pollMode

$serverId protected_oe property

protected $serverId

$sessId protected_oe property

protected $sessId

$stage protected_oe property

protected $stage

$stopped protected_oe property

protected $stopped