Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
PHPDaemon
Servers
WebSocket
Connection
sendFrame
PHPDaemon\Servers\WebSocket\Connection::sendFrame PHP Method
Connection Class Documentation
显示文件
Open project: kakserpom/phpdaemon
sendFrame()
public
method
Sends a frame.
public
sendFrame
(
string
$data
,
string
$type
= null,
callable
$cb
= null ) :
boolean
$data
string
Frame's data.
$type
string
Frame's type. ("STRING" OR "BINARY")
$cb
callable
Optional. Callback called when the frame is received by client.
return
boolean
Success.
public function sendFrame($data, $type = null, $cb = null) { return false; }
Connection
badRequest
getFrameType
gracefulShutdown
handleException
handshake
handshakeAfter
header
httpProcessHeaders
httpReadFirstline
httpReadHeaders
onFinish
onFrame
onInheritance
onInheritanceFromRequest
onRead
onReady
sendFrame
status
switchToProtocol