Download the PHP package jundayw/frames without Composer
On this page you can find all versions of the php package jundayw/frames. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package frames
环境要求
PHP
8.1 或更高版本
使用方法
- 命令行下, 执行
composer
命令安装:
接口
WebSocketInterface
客户端打包解包
-
客户端打包数据发送给服务端(Client-pack):
- 客户端解包服务端发送的数据(Client-unpack):
服务端打包解包
-
服务端打包数据发送给客户端(Server-pack):
- 服务端解包客户端发送的数据(Server-unpack):
数据帧类型
常量 | 对应值 | 说明 |
---|---|---|
WEBSOCKET_OPCODE_TEXT | 0x1 | UTF-8 文本字符数据 |
WEBSOCKET_OPCODE_BINARY | 0x2 | 二进制数据 |
WEBSOCKET_OPCODE_CLOSE | 0x8 | 关闭帧类型数据 |
WEBSOCKET_OPCODE_PING | 0x9 | ping 类型数据 |
WEBSOCKET_OPCODE_PONG | 0xa | pong 类型数据 |
All versions of frames with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1.0
The package jundayw/frames contains the following files
Loading the files please wait ....