Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yjs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sweng-group-15
yjs
Compare revisions
ba068ea6a62d6a124047fd3dd0075adecd5d149a to c2a07807dfaa1e5e6b667d83aa4a7d348c759c0f
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
sweng-group-15/yjs
Select target project
No results found
c2a07807dfaa1e5e6b667d83aa4a7d348c759c0f
Select Git revision
Branches
v12
Swap
Target
sweng-group-15/yjs
Select target project
sweng-group-15/yjs
1 result
ba068ea6a62d6a124047fd3dd0075adecd5d149a
Select Git revision
Branches
v12
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
(ml5717) Added y-js resync for partial mesh topology (ensure syncs are propagated)
· c2a07807
Moritz Langenstein
authored
5 years ago
c2a07807
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Connector.js
+18
-2
18 additions, 2 deletions
src/Connector.js
with
18 additions
and
2 deletions
src/Connector.js
View file @
c2a07807
...
...
@@ -351,13 +351,29 @@ module.exports = function (Y/* :any */) {
}
})
*/
defer
.
resolve
()
defer
.
resolve
(
m
.
os
&&
m
.
os
.
length
>
0
)
})
}
else
if
(
message
.
type
===
'
sync done
'
)
{
var
self
=
this
this
.
connections
[
sender
].
syncStep2
.
then
(
function
()
{
this
.
connections
[
sender
].
syncStep2
.
then
(
function
(
resync
)
{
if
(
resync
)
{
const
answer
=
{
type
:
'
sync check
'
,
}
for
(
const
uid
in
self
.
connections
)
{
if
(
uid
!==
sender
)
{
self
.
send
(
uid
,
answer
)
}
}
}
self
.
_setSyncedWith
(
sender
)
})
}
else
if
(
message
.
type
===
'
sync check
'
)
{
const
conn
=
this
.
connections
[
sender
]
if
(
conn
!=
null
&&
conn
.
isSynced
)
{
conn
.
isSynced
=
false
}
this
.
findNextSyncTarget
()
}
else
if
(
message
.
type
===
'
update
'
&&
canWrite
(
auth
))
{
if
(
this
.
forwardToSyncingClients
)
{
for
(
var
client
of
this
.
syncingClients
)
{
...
...
This diff is collapsed.
Click to expand it.