PHP Class PHPDaemon\SockJS\Methods\Generic

Author: Vasily Zorin ([email protected])
Inheritance: extends PHPDaemon\HTTPRequest\Generic
Show file 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 property

protected $allowedMethods

$bytesSent protected property

protected $bytesSent

$cacheable protected property

protected $cacheable

$callbackParamEnabled protected property

protected $callbackParamEnabled

$errors protected property

protected $errors

$frames protected property

protected $frames

$gcEnabled protected property

protected $gcEnabled

$heartbeatOnFinish protected property

protected $heartbeatOnFinish

$heartbeatTimer protected property

protected $heartbeatTimer

$opts protected property

protected $opts

$path protected property

protected $path

$poll protected property

protected $poll

$pollMode protected property

protected $pollMode

$serverId protected property

protected $serverId

$sessId protected property

protected $sessId

$stage protected property

protected $stage

$stopped protected property

protected $stopped