프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_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 |
public __construct ( Ratchet\WebSocket\Encoding\ValidatorInterface $validator = null ) | ||
$validator | Ratchet\WebSocket\Encoding\ValidatorInterface |
public handshake ( Guzzle\Http\Message\RequestInterface $request ) | ||
$request | Guzzle\Http\Message\RequestInterface |
public isProtocol ( Guzzle\Http\Message\RequestInterface $request ) | ||
$request | Guzzle\Http\Message\RequestInterface |
public isValidCloseCode ( $val ) : boolean | ||
리턴 | boolean |
public newMessage ( ) : Ratchet\WebSocket\Version\RFC6455\Message | ||
리턴 | Ratchet\WebSocket\Version\RFC6455\Message |
protected setCloseCodes ( ) |
public upgradeConnection ( Ratchet\ConnectionInterface $conn, Ratchet\MessageInterface $coalescedCallback ) : Ratchet\WebSocket\Version\RFC6455\Connection | ||
$conn | Ratchet\ConnectionInterface | |
$coalescedCallback | Ratchet\MessageInterface | |
리턴 | Ratchet\WebSocket\Version\RFC6455\Connection |
protected HandshakeVerifier,Ratchet\WebSocket\Version\RFC6455 $_verifier | ||
리턴 | Ratchet\WebSocket\Version\RFC6455\HandshakeVerifier |