Commit cc0c6e1f by Kim Eunchul

#43695 ウェブソケットの送信方式変更

parent 29cb5e42
...@@ -131,6 +131,7 @@ const SOCKET_KEY = { ...@@ -131,6 +131,7 @@ const SOCKET_KEY = {
DISCONNECT: "disconnect", DISCONNECT: "disconnect",
CONNECT_ERROR: "connect_error", CONNECT_ERROR: "connect_error",
NEW_MESSAGE: "newMessage", NEW_MESSAGE: "newMessage",
NEW_COMMUNICATION: "newCommunication",
NEW_NOTIFICATION: "newNotification", NEW_NOTIFICATION: "newNotification",
REFRESH_GROUPLIST: "refreshGroupList", REFRESH_GROUPLIST: "refreshGroupList",
REFRESH_USERLIST_INGROUP: "refreshUserListInGroup", REFRESH_USERLIST_INGROUP: "refreshUserListInGroup",
......
...@@ -5,8 +5,8 @@ CHAT_SOCKET.bindOnNewMessage = function () { ...@@ -5,8 +5,8 @@ CHAT_SOCKET.bindOnNewMessage = function () {
CHAT_SOCKET.handleMessage(message, roomName, SOCKET_KEY.NEW_MESSAGE) CHAT_SOCKET.handleMessage(message, roomName, SOCKET_KEY.NEW_MESSAGE)
}); });
socket.on(SOCKET_KEY.COMMUNICATION, function (message, roomID, roomName) { socket.on(SOCKET_KEY.NEW_COMMUNICATION, function (message, roomID, roomName) {
CHAT_SOCKET.handleMessage(message, roomName, SOCKET_KEY.COMMUNICATION) CHAT_SOCKET.handleMessage(message, roomName, SOCKET_KEY.NEW_COMMUNICATION)
}); });
}; };
...@@ -27,7 +27,7 @@ CHAT_SOCKET.handleMessage = function (message, roomName, socketKey) { ...@@ -27,7 +27,7 @@ CHAT_SOCKET.handleMessage = function (message, roomName, socketKey) {
const messageText = unwrappedMessageInfo; const messageText = unwrappedMessageInfo;
if ( if (
messageType == SOCKET_KEY.COMMUNICATION messageType == SOCKET_KEY.NEW_COMMUNICATION
) { ) {
CHAT_SOCKET.addCollaborationMessage( CHAT_SOCKET.addCollaborationMessage(
messageInfo, messageInfo,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment