Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat_webview
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abookCommunication
chat_webview
Commits
74b89250
Commit
74b89250
authored
Jul 30, 2021
by
Kim Eunchul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#43695 ウェブソケットの送信方式変更
parent
000922d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
public_new/js/common/constant.js
+1
-2
public_new/js/sockets/chat-websocket-message.js
+3
-3
public_new/js/sockets/chat-websocket.js
+1
-1
No files found.
public_new/js/common/constant.js
View file @
74b89250
...
@@ -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"
,
C
REATE_COMMUNICATIONSTART
:
"createCommunicationStart
"
,
C
OMMUNICATION
:
"communication
"
,
GET_GROUP_LIST
:
"getGroupList"
,
GET_GROUP_LIST
:
"getGroupList"
,
LEAVE_ROOM
:
"leaveRoom"
,
LEAVE_ROOM
:
"leaveRoom"
,
};
};
...
...
public_new/js/sockets/chat-websocket-message.js
View file @
74b89250
...
@@ -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
,
...
...
public_new/js/sockets/chat-websocket.js
View file @
74b89250
...
@@ -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
.
C
REATE_COMMUNICATIONSTART
,
{
text
:
sendData
},
collaborationType
,
meetingID
);
socket
.
emit
(
SOCKET_KEY
.
C
OMMUNICATION
,
{
text
:
sendData
},
collaborationType
,
meetingID
);
};
};
CHAT_SOCKET
.
emitCollaborationFinishMessage
=
function
()
{
CHAT_SOCKET
.
emitCollaborationFinishMessage
=
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment