Comments (8)
webman 也可以像workerman那样监听websocket。参见手册 https://www.workerman.net/doc/webman#/process
from webman.
非常给力!谢谢大佬,看文档没看到这里
from webman.
提问, webman可以接入Gateway吗, 具体配置应该怎么设置呢,
from webman.
http://doc2.workerman.net/work-with-other-frameworks.html
from webman.
在 process
配置文件
use GatewayWorker\Lib\Gateway;
public function onConnect($client_id)
{
echo "onConnect\n";
}
public function onMessage($client_id , $message)
{
Gateway::sendToCurrentClient($message);
}
config/process.php
'websocket' => [
'handler' => process\GatewayWebsocket::class,
'listen' => 'websocket://0.0.0.0:8888',
'count' => 10,
],
php start.php start
这样启动Gateway, 想实现这种, 在其他demo里面出了Business
和 Register
应该是缺少了这两个(? )
from webman.
把webman的代码和gatewayWorker融合没有什么意义。如果你需要webman里某个组件,可以直接composer安装使用,没有必要把二者在代码层面融合在一起。
from webman.
不是, 是想webman结合Gateway, 有方便的Uid操作, 想问下可不可以支持
from webman.
麻烦主动close一下
from webman.
Related Issues (20)
- Error: Call to undefined function support\run_path() HOT 1
- 两个接口,在一个接口设置的session,在另一个接口拿不到数据 HOT 1
- upload files emptily,the framework do not encapsulate exceptions
- 无法获取完整协议的URL
- PHP 8.2 support HOT 3
- How to alternative sleep function in API webman HOT 1
- 如何在 DB 查询构造器的 chunkMap 方法里使用翻译文件,来翻译数组? HOT 1
- composer update 会将自己在 helpers.php 里写的函数覆盖没.... HOT 4
- 助手函数helpers.php 中locale方法在设置 $locale时应该是无返回的
- 数据库正确的配置,但是提示用户名密码错误,不应该啊?
- upload in host HOT 3
- workerman v5 要出了吗?同步调用传参很需要呀、 HOT 2
- PHP8 下由于 psr/container 安装数据库扩展失败的问题 HOT 5
- 在日志文件不可写的情况下,会把完整的异常信息发送至客户端 HOT 1
- 为什么我webman写的接收图片接口 接收20M图片要 20秒 我PHP原生写的接收图片只要6秒 HOT 2
- 这个框架可以写webservices服务端吗? HOT 1
- Binary packaging compatibility with ARM HOT 1
- unable to install HOT 1
- How to Configure Session for Multiple Applications? HOT 2
- 建议排除abstract类
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webman.