workerman
首页
问答
分享
手册
市场
赞助
webman
AI助手
搜索
+
发布
提问
分享
webman插件
webman应用
登录
注册
分享
Auth用户认证 支持多表认证
name'= 'tycoonSong','password' = '123456']); Auth::accessTime(3600)->refresh(); ``` 9.获取报错信息 Auth::
fail
user(); //当没有登入或异常时返回的null 用于用户可登入或可不登入场景里 只需要判断 $user == null 即可 //而比如在会员中心调用时 $user = Auth::
fail
问答
socket.io 如何根据id判断用户是否下线了?
.'); $rc=input(''); $http_connection->send('
fail
, $_GET["msg"
分享
tp5.0整合phpsocketio推送消息完整代码,自己写的,已经亲测过了,不会有任何问题
}else{ $io->emit('new_msg', @$post['content']); } // http接口返回,如果用户离线socket返回
fail
else{ return $http_connection->send('ok'); } } return $http_connection->send('
fail
问答
救命啊,同样代码Linux和window处理不同
'ok' : '
fail
'); }; $inner_text_worker->listen(); }; // 新增加一个属性,用来保存uid到connection的映射 $worker->uidConnections'ok' : '
fail
'); }; $inner_text_worker->listen(); }; // 新增加一个属性,用来保存uid到connection的映射 $worker->uidConnections
问答
$worker->onMessage 对 http 协议没有作用吗?
'ok' : '
fail
'); }; $inner_text_worker->listen(); }; // 新增加一个属性,用来保存uid到connection的映射 $worker
问答
Windows环境下配置了SSL后,每隔一小时以后就会出现推送成功但客户端无法收到数据的问题
unset($worker->global->$token); }else{ $connection->send('{"ctrl":"
fail
问答
已经运行很久的项目,今天突然出现发一条消息重复两条甚至多条消息
return $http_connection->send('ok'); } } return $http_connection->send('
fail
问答
看文档一知半解?对单人的ID 发送不出去,无法唤醒前端只能群发
.'); $rc=input(''); $http_connection->send('
fail
, $_GET["msg"
文档
停止失败
# 停止失败 ## 现象: 运行 ```php start.php stop``` 提示 ```stop
fail
``` ### 第一种可能性 前提是以debug方式启动的workerman,开发者在终端按了
分享
webman中使用WxPayApi(3.0.10)不能响应回调的解决办法
notify($config, array($this, 'NotifyCallBack'), $msg); if($result == false){ $this->SetReturn_code("
FAIL
notify($config, array($this, 'NotifyCallBack'), $msg); if($result == false){ $this->SetReturn_code("
FAIL
问答
使用nginx反向代理到webman后,下载文件失败
file_exists($file)) { return $this->
fail
("{$data['version_name']} 版本更新包不存在"); } // 返回文件 return response
分享
gateway-worker运行逻辑分析
if (false === $worker_connection->send($gateway_data)) { $msg = "SendBufferToWorker
fail
} } // 没有可用的 worker else { // gateway 启动后 1-2 秒内 SendBufferToWorker
fail
if (time() - $this->_startTime >= $time_diff) { $msg = 'SendBufferToWorker
fail
问答
我在网页端 JS连接 WebSocket 总是失败
'ok' : '
fail
'); }; // 执行监听 $inner_text_worker->listen(); }; // 新增加一个属性,用来保存uid到connection
问答
workerman 定时器中的任务执行失败了,怎么做异常处理?
, $item['id'])->delete(); } else { Log::record('[MailMan][dog]
fail
问答
使用start_worker的onMessage无法执行内部函数方法
'ok' : '
fail
'); }; // ## 执行监听 ## $inner_text_worker->listen(); }; //监听接收消息 $worker->onMessage
问答
workman后端给服务端再给客户端发消息,客户端的消息怎么再给后端?
'ok' : '
fail
'); }; // 执行监听 $inner_text_worker->listen(); }; // 新增加一个属性,用来保存uid到connection
问答
客户端之间无法通讯
sendToUid方法发消息的时候,后台GatewayWorker终端用的是debug模式运行,但是没有报错,当频繁使用sendToUid方法发消息的时候,终端偶尔会报错:SendBufferToWorker
fail
文档
send buffer overflow
# sendbuffertoworker
fail
. may be the send buffer are overflow ### 说明 出现这个错误说明服务端处理请求的速度低于客户端发送请求的速度
问答
关于workerman的问题,研究了好久没有解决,希望得到您的帮助
'ok' : '
fail
'); }; $inner_text_worker->listen(); }; // 当有客户端发来消息时执行的回调函数 $worker->onMessage =
问答
使用AsyncTcpConnection模拟CURL -x命令代理请求时,如何跳过证书验证?
$parse) { echo "parse http header and body text
fail
" .
« 上一页
1
2
3
4
5
6
7
8
9
10
下一页 »
« 上一页
9
下一页 »
请作者喝咖啡
×
🔝