msg.php id=216,client_id undefined is invalid

client:127.0.0.1:51383 gateway:127.0.0.1:7272 client_id:7f00000108fc00000003 session:{"room_id":"1"

,"client_name":"yy"} onMessage:{"type":"pong"}

client:127.0.0.1:51383 gateway:127.0.0.1:7272 client_id:7f00000108fc00000003 session:{"room_id":"1"

,"client_name":"yy"} onMessage:{"type":"say","to_client_id":"undefined","to_client_name":"","content

":"5"}

client_id:7f00000108fc00000003 client_ip:2130706433

exception 'Exception' with message 'client_id undefined is invalid' in D:\wamp\www\zbj\chat\GatewayW

orker\Lib\Context.php:102

Stack trace:

#0 D:\wamp\www\zbj\chat\GatewayWorker\Lib\Gateway.php(452): GatewayWorker\Lib\Context::clientIdToAdd

ress('undefined')

#1 D:\wamp\www\zbj\chat\GatewayWorker\Lib\Gateway.php(78): GatewayWorker\Lib\Gateway::sendCmdAndMess

ageToClient('undefined', 5, '{"type":"say","...')

#2 D:\wamp\www\zbj\chat\Applications\Chat\Event.php(116): GatewayWorker\Lib\Gateway::sendToClient('u

ndefined', '{"type":"say","...')

#3 D:\wamp\www\zbj\chat\GatewayWorker\BusinessWorker.php(216): Event::onMessage('7f00000108fc000...'

, '{"type":"say","...')

#4 : GatewayWorker\BusinessWorker->onGatewayMessage(Object(Workerman\Connection\A

syncTcpConnection), Array)

#5 D:\wamp\www\zbj\chat\Workerman\Connection\TcpConnection.php(471): call_user_func(Array, Object(Wo

rkerman\Connection\AsyncTcpConnection), Array)

#6 : Workerman\Connection\TcpConnection->baseRead(Resource id #23)

#7 D:\wamp\www\zbj\chat\Workerman\Events\Select.php(253): call_user_func_array(Array, Array)

#8 D:\wamp\www\zbj\chat\Workerman\Worker.php(734): Workerman\Events\Select->loop()

#9 D:\wamp\www\zbj\chat\GatewayWorker\BusinessWorker.php(96): Workerman\Worker->run()

#10 D:\wamp\www\zbj\chat\Workerman\Worker.php(422): GatewayWorker\BusinessWorker->run()

#11 D:\wamp\www\zbj\chat\Workerman\Worker.php(339): Workerman\Worker::runAllWorkers()

#12 D:\wamp\www\zbj\chat\Applications\Chat\start_businessworker.php(36): Workerman\Worker::runAll()

#13 {main}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值