PHP 클래스 Thruway\AbstractSession

파일 보기 프로젝트 열기: voryx/thruway 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$authenticated boolean
$loop React\EventLoop\LoopInterface
$pingRequests array
$realm Realm
$sessionId integer
$state integer
$transport Thruway\Transport\TransportInterface

공개 메소드들

메소드 설명
abort ( mixed $details = null, mixed $responseURI = null ) process abort request
getAuthenticated ( ) : boolean Get authentication state (authenticated or not)
getLoop ( ) : React\EventLoop\LoopInterface Get loop
getRealm ( ) : Realm Get realm
getSessionId ( ) : integer Get session ID
getState ( ) : integer Get client state
getTransport ( ) : Thruway\Transport\TransportInterface Get transport
isAuthenticated ( ) : boolean check is authenticated
isGoodbyeSent ( ) : boolean Check sent Goodbye message
ping ( integer $timeout = 5 ) : Promise Ping
sendMessage ( Thruway\Message\Message $msg ) : mixed Send message
setAuthenticated ( boolean $authenticated ) Set athentication state (authenticated or not)
setGoodbyeSent ( boolean $goodbyeSent ) Set state sent goodbye message ?
setLoop ( React\EventLoop\LoopInterface $loop ) Set loop
setRealm ( Realm $realm ) Set realm
setState ( integer $state ) Set client state
shutdown ( ) Process Shutdown session

메소드 상세

abort() 공개 메소드

process abort request
public abort ( mixed $details = null, mixed $responseURI = null )
$details mixed
$responseURI mixed

getAuthenticated() 공개 메소드

Get authentication state (authenticated or not)
public getAuthenticated ( ) : boolean
리턴 boolean

getLoop() 공개 메소드

Get loop
public getLoop ( ) : React\EventLoop\LoopInterface
리턴 React\EventLoop\LoopInterface

getRealm() 공개 메소드

Get realm
public getRealm ( ) : Realm
리턴 Realm

getSessionId() 공개 메소드

Get session ID
public getSessionId ( ) : integer
리턴 integer

getState() 공개 메소드

Get client state
public getState ( ) : integer
리턴 integer

getTransport() 공개 메소드

Get transport
public getTransport ( ) : Thruway\Transport\TransportInterface
리턴 Thruway\Transport\TransportInterface

isAuthenticated() 공개 메소드

check is authenticated
public isAuthenticated ( ) : boolean
리턴 boolean

isGoodbyeSent() 공개 메소드

Check sent Goodbye message
public isGoodbyeSent ( ) : boolean
리턴 boolean

ping() 공개 메소드

Ping
public ping ( integer $timeout = 5 ) : Promise
$timeout integer
리턴 React\Promise\Promise

sendMessage() 추상적인 공개 메소드

Send message
abstract public sendMessage ( Thruway\Message\Message $msg ) : mixed
$msg Thruway\Message\Message
리턴 mixed

setAuthenticated() 공개 메소드

Set athentication state (authenticated or not)
public setAuthenticated ( boolean $authenticated )
$authenticated boolean

setGoodbyeSent() 공개 메소드

Set state sent goodbye message ?
public setGoodbyeSent ( boolean $goodbyeSent )
$goodbyeSent boolean

setLoop() 공개 메소드

Set loop
public setLoop ( React\EventLoop\LoopInterface $loop )
$loop React\EventLoop\LoopInterface

setRealm() 공개 메소드

Set realm
public setRealm ( Realm $realm )
$realm Realm

setState() 공개 메소드

Set client state
public setState ( integer $state )
$state integer

shutdown() 공개 메소드

Process Shutdown session
public shutdown ( )

프로퍼티 상세

$authenticated 보호되어 있는 프로퍼티

protected bool $authenticated
리턴 boolean

$loop 보호되어 있는 프로퍼티

protected LoopInterface,React\EventLoop $loop
리턴 React\EventLoop\LoopInterface

$pingRequests 보호되어 있는 프로퍼티

protected array $pingRequests
리턴 array

$realm 보호되어 있는 프로퍼티

protected Realm,Thruway $realm
리턴 Realm

$sessionId 보호되어 있는 프로퍼티

protected int $sessionId
리턴 integer

$state 보호되어 있는 프로퍼티

protected int $state
리턴 integer

$transport 보호되어 있는 프로퍼티

protected TransportInterface,Thruway\Transport $transport
리턴 Thruway\Transport\TransportInterface