iohao / ioGame

无锁异步化、事件驱动架构设计的 java netty 网络编程框架; 轻量级,无需依赖任何第三方中间件或数据库就能支持集群、分布式; 适用于网络游戏服务器、物联网、内部系统及各种需要长连接的场景; 通过 ioGame 你可以很容易的搭建出一个集群无中心节点、集群自动化、分布式的网络服务器;FXGL、Unity、UE、Cocos Creator、Godot、Netty、Protobuf、webSocket、tcp、socket;java Netty 游戏服务器框架;

Home Page:http://game.iohao.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

前端页面通过websocket.js发送信息后自动关闭

ammonzhang opened this issue · comments

提问

按照 iogame-example / example-codec-json 中 前端页面 调用websocket.js 发送给 iogame, 服务端也是按照例子代码运行。websocket能成功连接,一发送信息,websocket就自动关闭连接,并不会有返回信息。服务端控制台有大量debug日志
版本是 iogame 17.1.61
麻烦看下是否有问题: 日志以及前端图片如下:
14:36:32.176 [Rpc-netty-server-worker-1-thread-1] DEBUG io.netty.channel.DefaultChannelPipeline - Discarded message pipeline : [decoder, encoder, idleStateHandler, serverIdleHandler, connectionEventHandler, handler, DefaultChannelPipeline$TailContext#0]. Channel : [id: 0xcd4bfeca, L:/127.0.0.1:10200 - R:/127.0.0.1:60340].
14:36:32.176 [bolt-netty-client-worker-7-thread-1] DEBUG io.netty.channel.DefaultChannelPipeline - Discarded inbound message com.alipay.remoting.rpc.HeartbeatAckCommand@50f94c68 that reached at the tail of the pipeline. Please check your pipeline configuration.
14:36:32.176 [bolt-netty-client-worker-7-thread-1] DEBUG io.netty.channel.DefaultChannelPipeline - Discarded message pipeline : [decoder, encoder, idleStateHandler, heartbeatHandler, connectionEventHandler, handler, DefaultChannelPipeline$TailContext#0]. Channel : [id: 0x40b97552, L:/127.0.0.1:60340 - R:/127.0.0.1:10200].
14:36:32.176 [Rpc-netty-server-worker-1-thread-2] DEBUG io.netty.channel.DefaultChannelPipeline - Discarded inbound message com.alipay.remoting.rpc.HeartbeatCommand@13c8e07 that reached at the tail of the pipeline. Please check your pipeline configuration.
1707288393258

问题已解决,少了依赖。

可以具体说下吗, 我也遇到同样的问题