walkor / walkor/GatewayWorker

当用webman来使用GatewayWorker的时候的问题

Open
#115 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
1k
Forks
291
PR merge metrics
No merged PRs in 30d

Description

1、我按照GatewayWorker的文档,在项目中安装webman/gateway-worker,但是在业务中如果想发送信息给客户端,我发现使用的是workerman/gateway-worker里面的文件,这里不太理解,这两个之间的关系
2、当我尝试检测一个失效的/无效的client_id的时候,Gateway::isOnline($client_id),这个方法,最终追溯到Context::clientIdToAddress($client_id),我发现,这里的抛异常,是echo,详见GatewayWorker\Lib\Context的第131行,这将导致webman的控制台出现大量的错误信息,并且该异常无法捕获到

Contributor guide

No contributing guide indexed for this repository

Research direction

Compare the webman/gateway-worker documentation and the workerman/gateway-worker files to clarify how the two packages relate when sending messages. Then trace Gateway::isOnline($client_id) into GatewayWorker\Lib\Context::clientIdToAddress($client_id), especially line 131, and reproduce the invalid-client_id case. Done means the package relationship is documented and the error behavior is resolved without uncapturable console output.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.