PHP 클래스 Ratchet\WebSocket\Version\RFC6455

상속: implements Ratchet\WebSocket\Version\VersionInterface
파일 보기 프로젝트 열기: cboden/ratchet 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_verifier Ratchet\WebSocket\Version\RFC6455\HandshakeVerifier
$validator Ratchet\WebSocket\Encoding\ValidatorInterface

공개 메소드들

메소드 설명
__construct ( Ratchet\WebSocket\Encoding\ValidatorInterface $validator = null )
getVersionNumber ( )
handshake ( Guzzle\Http\Message\RequestInterface $request )
isProtocol ( Guzzle\Http\Message\RequestInterface $request )
isValidCloseCode ( $val ) : boolean Determine if a close code is valid
newFrame ( string | null $payload = null, boolean | null $final = null, integer | null $opcode = null ) : Ratchet\WebSocket\Version\RFC6455\Frame
newMessage ( ) : Ratchet\WebSocket\Version\RFC6455\Message
onMessage ( Ratchet\ConnectionInterface $from, string $data )
sign ( string $key ) : string Used when doing the handshake to encode the key, verifying client/server are speaking the same language
upgradeConnection ( Ratchet\ConnectionInterface $conn, Ratchet\MessageInterface $coalescedCallback ) : Ratchet\WebSocket\Version\RFC6455\Connection

보호된 메소드들

메소드 설명
setCloseCodes ( ) Creates a private lookup of valid, private close codes

메소드 상세

__construct() 공개 메소드

public __construct ( Ratchet\WebSocket\Encoding\ValidatorInterface $validator = null )
$validator Ratchet\WebSocket\Encoding\ValidatorInterface

getVersionNumber() 공개 메소드

public getVersionNumber ( )

handshake() 공개 메소드

public handshake ( Guzzle\Http\Message\RequestInterface $request )
$request Guzzle\Http\Message\RequestInterface

isProtocol() 공개 메소드

public isProtocol ( Guzzle\Http\Message\RequestInterface $request )
$request Guzzle\Http\Message\RequestInterface

isValidCloseCode() 공개 메소드

Determine if a close code is valid
public isValidCloseCode ( $val ) : boolean
리턴 boolean

newFrame() 공개 메소드

public newFrame ( string | null $payload = null, boolean | null $final = null, integer | null $opcode = null ) : Ratchet\WebSocket\Version\RFC6455\Frame
$payload string | null
$final boolean | null
$opcode integer | null
리턴 Ratchet\WebSocket\Version\RFC6455\Frame

newMessage() 공개 메소드

public newMessage ( ) : Ratchet\WebSocket\Version\RFC6455\Message
리턴 Ratchet\WebSocket\Version\RFC6455\Message

onMessage() 공개 메소드

public onMessage ( Ratchet\ConnectionInterface $from, string $data )
$from Ratchet\ConnectionInterface
$data string

setCloseCodes() 보호된 메소드

Creates a private lookup of valid, private close codes
protected setCloseCodes ( )

sign() 공개 메소드

Used when doing the handshake to encode the key, verifying client/server are speaking the same language
public sign ( string $key ) : string
$key string
리턴 string

upgradeConnection() 공개 메소드

public upgradeConnection ( Ratchet\ConnectionInterface $conn, Ratchet\MessageInterface $coalescedCallback ) : Ratchet\WebSocket\Version\RFC6455\Connection
$conn Ratchet\ConnectionInterface
$coalescedCallback Ratchet\MessageInterface
리턴 Ratchet\WebSocket\Version\RFC6455\Connection

프로퍼티 상세

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

protected HandshakeVerifier,Ratchet\WebSocket\Version\RFC6455 $_verifier
리턴 Ratchet\WebSocket\Version\RFC6455\HandshakeVerifier

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

protected ValidatorInterface,Ratchet\WebSocket\Encoding $validator
리턴 Ratchet\WebSocket\Encoding\ValidatorInterface