修改websocket配置
This commit is contained in:
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
public class RemoteWebSocketMessageServiceImpl implements RemoteWebSocketMessageService {
|
||||
|
||||
@Override
|
||||
public void publishMessage(List<Long> sessionKey, WebSocketMsgType webSocketMsgType, Object data) {
|
||||
public void publishMessage(List<Long> sessionKey, WebSocketMsgType webSocketMsgType, String data) {
|
||||
WebSocketMessageDto dto = new WebSocketMessageDto();
|
||||
dto.setSessionKeys(sessionKey);
|
||||
dto.setMessage(createMsg(webSocketMsgType, data));
|
||||
@@ -34,7 +34,7 @@ public class RemoteWebSocketMessageServiceImpl implements RemoteWebSocketMessage
|
||||
}
|
||||
|
||||
@Override
|
||||
public void publishAll(WebSocketMsgType webSocketMsgType, Object data) {
|
||||
public void publishAll(WebSocketMsgType webSocketMsgType, String data) {
|
||||
try {
|
||||
WebSocketUtils.publishAll(createMsg(webSocketMsgType, data));
|
||||
} catch (Exception e) {
|
||||
@@ -44,7 +44,7 @@ public class RemoteWebSocketMessageServiceImpl implements RemoteWebSocketMessage
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendMessage(Long userId, WebSocketMsgType webSocketMsgType, Object data) {
|
||||
public void sendMessage(Long userId, WebSocketMsgType webSocketMsgType, String data) {
|
||||
try {
|
||||
WebSocketUtils.sendMessage(userId, createMsg(webSocketMsgType, data));
|
||||
} catch (Exception e) {
|
||||
|
Reference in New Issue
Block a user