Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
ParaEncode
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ParaEncode
Commits
c4db9729
Commit
c4db9729
authored
May 18, 2022
by
Linshizhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check is grp msg or not.
parent
51ec9c11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
WW.js
src/WW.js
+5
-1
No files found.
src/WW.js
View file @
c4db9729
import
{
makeMsg
,
MESSAGE_TYPE
,
typeOfMsg
}
from
'./encGrooupMsg.js'
;
import
{
isEncGrpMsg
,
makeMsg
,
MESSAGE_TYPE
,
typeOfMsg
}
from
'./encGrooupMsg.js'
;
import
{
Observable
}
from
'rxjs'
;
import
{
Observable
}
from
'rxjs'
;
...
@@ -123,6 +123,10 @@ export class WW extends Observable {
...
@@ -123,6 +123,10 @@ export class WW extends Observable {
// status of WW will map to local variables.
// status of WW will map to local variables.
#
monitor
()
{
#
monitor
()
{
this
.
subscribe
(
msg
=>
{
this
.
subscribe
(
msg
=>
{
if
(
!
isEncGrpMsg
(
msg
))
return
;
switch
(
typeOfMsg
(
msg
))
{
switch
(
typeOfMsg
(
msg
))
{
case
MESSAGE_TYPE
.
INIT
:
case
MESSAGE_TYPE
.
INIT
:
this
.
#
remoteInited
=
true
;
this
.
#
remoteInited
=
true
;
...
...
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