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
cc0c6e1f
Commit
cc0c6e1f
authored
Aug 02, 2021
by
Kim Eunchul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#43695 ウェブソケットの送信方式変更
parent
29cb5e42
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
public_new/js/common/constant.js
+1
-0
public_new/js/sockets/chat-websocket-message.js
+3
-3
No files found.
public_new/js/common/constant.js
View file @
cc0c6e1f
...
@@ -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"
,
...
...
public_new/js/sockets/chat-websocket-message.js
View file @
cc0c6e1f
...
@@ -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
,
...
...
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