« Swoole\WebSocket\Frame
Swoole\WebSocket\Server::exist »
PHP Manual
Swoole
The Swoole\WebSocket\Server class
検索
The Swoole\WebSocket\Server class
(PECL swoole >= 1.9.0)
はじめに
クラス概要
class
Swoole\WebSocket\Server
extends
Swoole\Http\Server
{
/* メソッド */
public
function
exist
(
int
$fd
):
bool
public
function
on
(
string
$event_name
,
callable
$callback
):
ReturnType
public
static
function
pack
(
string
$data
,
string
$opcode
= ?
,
string
$finish
= ?
,
string
$mask
= ?
):
binary
public
function
push
(
string
$fd
,
string
$data
,
string
$opcode
= ?
,
string
$finish
= ?
):
void
public
static
function
unpack
(
binary
$data
):
string
/* 継承したメソッド */
public
function
Swoole\Http\Server::on
(
string
$event_name
,
callable
$callback
):
void
public
function
Swoole\Http\Server::start
():
void
}
目次
Swoole\WebSocket\Server::exist
— Check if the file descriptor exists.
Swoole\WebSocket\Server::on
— Register event callback function
Swoole\WebSocket\Server::pack
— Get a pack of binary data to send in a single frame.
Swoole\WebSocket\Server::push
— Push data to the remote client.
Swoole\WebSocket\Server::unpack
— Unpack the binary data received from the client.
関連キーワード:
Swoole
Server
WebSocket
binary
exist
Http
event
callback
pack
callable
static
opcode
finish
push
unpack
client
Frame
swoole
概要
extends
ReturnType
mask
継承
start
目次
関連する関数・ページ:
swoole-websocket-server.push
swoole-websocket-server.pack
swoole-websocket-server.exist
swoole-websocket-server.on
swoole-websocket-server.unpack
class.swoole-websocket-frame