Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-06-01 05:20:44 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fe9c193774d3139a279e02afe75f4420fefc0989
fe9c1937
1 parent
375f45b5
rename message topic
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
back/src/api/Message/subMessage/subMessage.js
back/src/topics.js
back/src/api/Message/subMessage/subMessage.js
View file @
fe9c193
import
{
ONE_TO_ONE
_MESSAGE
}
from
"../../../topics"
;
import
{
NEW
_MESSAGE
}
from
"../../../topics"
;
export
default
{
Subscription
:
{
subMessage
:
{
subscribe
:
async
(
_
,
__
,
{
pubsub
})
=>
{
return
pubsub
.
asyncIterator
(
ONE_TO_ONE
_MESSAGE
);
return
pubsub
.
asyncIterator
(
NEW
_MESSAGE
);
},
},
},
...
...
back/src/topics.js
View file @
fe9c193
export
const
ONE_TO_ONE_MESSAGE
=
"one-to-one
message"
;
export
const
NEW_MESSAGE
=
"new
message"
;
...
...
Please
register
or
login
to post a comment