修改点:
1、AioHandler.decode(ByteBuffer buffer, ChannelContext channelContext)方法签名改成AioHandler.decode(ByteBuffer buffer, int limit, int position, int readableLength, ChannelContext channelContext),就是加了几个参数,各位更新版本后,你的代码会有一个地方报错,加上这几个参数就可以了。
2、org.tio.websocket.server.handler.IWsMsgHandler增加onAfterHandshaked(HttpRequest httpRequest, HttpResponse httpResponse, ChannelContext channelContext),让用户在握手完成后可以做一些初始化工作
3、tio-websocket-server的文档:https://t-io.org/blog/index.html?p=%2Fblog%2Ftio%2Fws%2Fshowcase.html
4、tio-websocket-server的showcase工程:https://gitee.com/tywo45/tio-websocket-showcase。展示tio-websocket的用法,t-io官方提供的唯一tio-websocket示范教程,包括wss和监控等高级特性
5、tio-websocket-server的showcase工程在线演示:https://t-io.org/ws-showcase/index.html
6、其它各种修改,譬如j2cache、jfinal、hutool等框架的升级,tio-core日志的优化,不一一列举
最新pom:
<dependency> <groupid>org.t-io</groupid> <artifactid>tio-core</artifactid> <version>2.4.0.v20180508-RELEASE</version> </dependency>
新闻播报:
继游戏(如贝密游戏)、IM(如j-im)、监控(太多了,一般不开源)、物联网(譬如氦氪云)等领域使用t-io后,最近又发现某开源区块链项目也在使用t-io,大家可以围观一下:https://gitee.com/tianyalei/md_blockchain