Download the PHP package swokit/server without Composer
On this page you can find all versions of the php package swokit/server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download swokit/server
More information about swokit/server
Files in swokit/server
Download swokit/server
More information about swokit/server
Files in swokit/server
Please rate this library. Is it a good library?
Informations about the package server
php server
快速的使用和管理 swoole server
相关组件
More please see https://github.com/swokit
install
run flow
quick run
- create a TCP server
config refer
注意事项
- 协程模式
开启协程模式后,swoole_server 和swoole_http_server将以为每一个请求创建对应的协程,开发者可以在onRequest
、onReceive
、onConnect
3个事件回调中使用协程客户端
- 在主服务器上追加监听的端口服务的事件不生效
在终端运行server: php server.php
再开一个终端测试追加监听的tcp服务是否成功
最后发现必须要调用 $port->set()
才行。增加一行设置 tcp 服务的配置
重新运行server后再测试:
NOTICE: 增加端口监听后,必须要调用
$port->set()
. 不然不会触发监听服务上的事件,即使传入空数组也行,但不能不调用。
All versions of server with dependencies
PHP Build Version
Package Version
The package swokit/server contains the following files
Loading the files please wait ....