Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Ratchet
WebSocket
Version
RFC6455
sign
Ratchet\WebSocket\Version\RFC6455::sign PHP Method
RFC6455 Class Documentation
Show file
Open project: cboden/ratchet
sign()
public
method
Used when doing the handshake to encode the key, verifying client/server are speaking the same language
public
sign
(
string
$key
) :
string
$key
string
return
string
public function sign($key) { return base64_encode(sha1($key . static::GUID, true)); }
RFC6455
__construct
getVersionNumber
handshake
isProtocol
isValidCloseCode
newFrame
newMessage
onMessage
setCloseCodes
sign
upgradeConnection