Commit 74b89250 by Kim Eunchul

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

parent 000922d1
...@@ -131,7 +131,6 @@ const SOCKET_KEY = { ...@@ -131,7 +131,6 @@ 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",
...@@ -142,7 +141,7 @@ const SOCKET_KEY = { ...@@ -142,7 +141,7 @@ const SOCKET_KEY = {
CREATE_TEXT: "createText", CREATE_TEXT: "createText",
CREATE_IMAGE: "createImage", CREATE_IMAGE: "createImage",
CREATE_VIDEO: "createVideo", CREATE_VIDEO: "createVideo",
CREATE_COMMUNICATIONSTART: "createCommunicationStart", COMMUNICATION: "communication",
GET_GROUP_LIST: "getGroupList", GET_GROUP_LIST: "getGroupList",
LEAVE_ROOM: "leaveRoom", LEAVE_ROOM: "leaveRoom",
}; };
......
...@@ -5,8 +5,8 @@ CHAT_SOCKET.bindOnNewMessage = function () { ...@@ -5,8 +5,8 @@ CHAT_SOCKET.bindOnNewMessage = function () {
handleMessage(message, roomName, SOCKET_KEY.NEW_MESSAGE) handleMessage(message, roomName, SOCKET_KEY.NEW_MESSAGE)
}); });
socket.on(SOCKET_KEY.NEW_COMMUNICATION, function (message, roomID, roomName) { socket.on(SOCKET_KEY.COMMUNICATION, function (message, roomID, roomName) {
handleMessage(message, roomName, SOCKET_KEY.NEW_COMMUNICATION) handleMessage(message, roomName, SOCKET_KEY.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.NEW_COMMUNICATION messageType == SOCKET_KEY.COMMUNICATION
) { ) {
CHAT_SOCKET.addCollaborationMessage( CHAT_SOCKET.addCollaborationMessage(
messageInfo, messageInfo,
......
...@@ -205,7 +205,7 @@ CHAT_SOCKET.emitCreateVideo = function (sendData) { ...@@ -205,7 +205,7 @@ CHAT_SOCKET.emitCreateVideo = function (sendData) {
}; };
CHAT_SOCKET.emitCreateCommunicationStart = function (sendData, collaborationType, meetingID) { CHAT_SOCKET.emitCreateCommunicationStart = function (sendData, collaborationType, meetingID) {
socket.emit(SOCKET_KEY.CREATE_COMMUNICATIONSTART, { text: sendData }, collaborationType, meetingID); socket.emit(SOCKET_KEY.COMMUNICATION, { text: sendData }, collaborationType, meetingID);
}; };
CHAT_SOCKET.emitCollaborationFinishMessage = function () { CHAT_SOCKET.emitCollaborationFinishMessage = function () {
......
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