Свойство | Type | Description | |
---|---|---|---|
$_verifier | Ratchet\WebSocket\Version\RFC6455\HandshakeVerifier | ||
$validator | Ratchet\WebSocket\Encoding\ValidatorInterface |
Méthode | Description | |
---|---|---|
__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 |
Méthode | Description | |
---|---|---|
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 | ||
Résultat | boolean |
public newMessage ( ) : Ratchet\WebSocket\Version\RFC6455\Message | ||
Résultat | 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 | |
Résultat | Ratchet\WebSocket\Version\RFC6455\Connection |
protected HandshakeVerifier,Ratchet\WebSocket\Version\RFC6455 $_verifier | ||
Résultat | Ratchet\WebSocket\Version\RFC6455\HandshakeVerifier |