客户端异常处理

This commit is contained in:
wenc000 2020-08-05 22:48:10 +08:00
parent d980521a0c
commit 7ef5cfe0cf

View File

@ -60,8 +60,7 @@ public class ExceptionServiceImpl extends BaseSocketService {
message.setStart(SocketTypeMessageEnum.MESSAGE_TYPE_START.getType());
message.setType(SocketTypeMessageEnum.MESSAGE_TYPE_EXCEPTION.getType());
message.setToken(socketClientManager.getToken());
JSONObject.toJSONString(successResult(exceptionJSONObject));
message.setContent(exceptionJSONObject.toString());
message.setContent(JSONObject.toJSONString(successResult(exceptionJSONObject)));
socketClientManager.getChannel().writeAndFlush(message);
}