| | |
| | | package com.xcong.excoin.netty.dispatch; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.xcong.excoin.netty.bean.RequestBean; |
| | | import com.xcong.excoin.netty.bean.SubRequest; |
| | | import com.xcong.excoin.netty.bean.SubResponse; |
| | | import com.xcong.excoin.netty.bean.UnSubResponse; |
| | | import com.xcong.excoin.netty.common.ChannelManager; |
| | | import com.xcong.excoin.netty.common.ServerChannelManager; |
| | | import com.xcong.excoin.netty.common.NettyTools; |
| | | import com.xcong.excoin.netty.logic.MsgLogic; |
| | | import io.netty.channel.ChannelHandlerContext; |
| | |
| | | return; |
| | | } |
| | | |
| | | ChannelManager.putSymbolSubChannel(split[1], ctx.channel(), split[2]); |
| | | ServerChannelManager.putSymbolSubChannel(split[1], ctx.channel(), split[2]); |
| | | SubResponse subResponse = new SubResponse(); |
| | | subResponse.setSubbed(sub); |
| | | subResponse.setId(jsonObject.getString("id")); |
| | |
| | | return; |
| | | } |
| | | |
| | | ChannelManager.removeSymbolUnSubChannel(split[1], ctx.channel(), split[2]); |
| | | ServerChannelManager.removeSymbolUnSubChannel(split[1], ctx.channel(), split[2]); |
| | | UnSubResponse resp = new UnSubResponse(); |
| | | resp.setSubbed(sub); |
| | | resp.setId(jsonObject.getString("id")); |