Download the PHP package wp-breeder/swoft-socket without Composer
On this page you can find all versions of the php package wp-breeder/swoft-socket. 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 swoft-socket
swoft-socket
说明
基于 swoft 的 socket
组件,支持 tcp/udp
多端口监听,详细内容参考swoole wiki。
安装
- composer command
快速开始
-
在
/project-to-path/config/properties/app
中添加配置: - 在
/project-to-path/config/server
中添加配置:
用法
- 与
rpc
、http
混合使用
新增注解
@SocketListener
, 使用方法大致与@ServerListener
一致,不同是需要指定该监听器监听的端口。
-
单独开启,与
rpc
、http
、ws
一致。(若监听多个,默认第一个配置为master server, 其他配置单独监听指定端口) - 使用示例:
LICENSE
The Component is open-sourced software licensed under the Apache license.
All versions of swoft-socket with dependencies
PHP Build Version
Package Version
The package wp-breeder/swoft-socket contains the following files
Loading the files please wait ....