Download the PHP package huaweichenai/web-socket without Composer
On this page you can find all versions of the php package huaweichenai/web-socket. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download huaweichenai/web-socket
More information about huaweichenai/web-socket
Files in huaweichenai/web-socket
Download huaweichenai/web-socket
More information about huaweichenai/web-socket
Files in huaweichenai/web-socket
Vendor huaweichenai
Package web-socket
Short Description This is a service class that implements websocket
License BSD-3-Clause
Package web-socket
Short Description This is a service class that implements websocket
License BSD-3-Clause
Please rate this library. Is it a good library?
Informations about the package web-socket
webSocket
This is a service class that implements websocket (这是一个websocket的服务类,可以快速的帮助你实现websocket的一些基本功能)
Installation
Usage
Configuration
其他的详细运行参数可与参考:https://www.wj0511.com/site/detail.html?id=423
use
websocket启动
websocket停止
根据如上就可是简单的实现websocket运行,如果你需要在websocket运行期间:启动,握手,连接,接收消息,http响应,客户端关闭连接,服务端关闭连接自己设置自己的自定义方法的话 1 自己创建一个类,专门用户继承websocket,并进行复写各个阶段的事件
在上面的业务代码中我们可以使用下面方法向指定客户端发送信息
还可以使用如下方法:
2 自定义类创建好了之后
All versions of web-socket with dependencies
PHP Build Version
Package Version
No informations.
The package huaweichenai/web-socket contains the following files
Loading the files please wait ....