Skip to content

Using notify_push for syncing #1805

Description

@Lejo1

Is your feature request related to a problem? Please describe.
Currently the client frequently has to check for changes on the server creating high load also for idle files.

Describe the solution you'd like
The notify_push app can solve this problem by pushing the changes to the client directly via a websocket. Therefore the latency will be highly reduced making the app even better for collaboration.

Additional context
The notify_push app is already used for file updates which are often even faster than the syncing of the text app.

Activity

  1. juliusknorr commented on Aug 2, 2021

    @juliusknorr
    Member

    Yes, that would definitely be a nice integration. @icewind1991 I guess it would make sense to have a dedicated message type implemented on the notify_push side that the text app can use to push document changes to any active editing session for a document through the websocket.

  2. icewind1991 commented on Aug 2, 2021

    @icewind1991
    Member

    This should already be possible without any changes to notify_push by using custom events

    $queue = \OC::$server->get(OCA\NotifyPush\IQueue::class);
    $queue->push('notify_custom', [
    	'user' => "uid",
    	'message' => "my_message_type",
            'body' => ["foo" => "bar"], // optional
    ]);

    and

    import { listen } from '@nextcloud/notify_push'
    
    listen('my_message_type', (message_type, body) => {
    
    })
  3. max-nextcloud commented on Nov 19, 2022

    @max-nextcloud
    Collaborator

    Planning to tackle this as part of the y.js based collaboration rework in #2669.
    There's little use in looking into it before hand as a lot of the collaboration API will change. So marking the issue as blocked by the y.js rework.

  4. moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity teamon Jun 29, 2023
  5. moved this from 🧭 Planning evaluation (don't pick) to 📄 To do (~10 entries) in 📝 Productivity teamon Apr 4, 2024
  6. self-assigned this
    on Apr 24, 2024
  7. moved this from 📄 To do (~10 entries) to 🏗️ In progress in 📝 Productivity teamon Apr 29, 2024
  8. moved this from 🏗️ In progress to 👀 In review in 📝 Productivity teamon Jun 13, 2024
  9. moved this from 👀 In review to ☑️ Done in 📝 Productivity teamon Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions