Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use near-real-time change notifications for fetching delta #403

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

yousong
Copy link

@yousong yousong commented Jun 15, 2024

It seems onedrive graph API provides websocket (socket.io) endpoint for subscribing to "near-real-time change notifications for fetching delta" (Link)

I wrote a simple socket.io go client (Link) and integrated it with the onedriver client. It works. The delay of event notification is about 5-8 seconds.

The other 2 commits is not directly related to the "near-real-time change notification". I can re-organize them into another pull request if needed.

@yousong yousong force-pushed the yousong branch 3 times, most recently from 8af008f to 0ed17f6 Compare June 18, 2024 10:03
@yousong
Copy link
Author

yousong commented Jul 1, 2024

Friendly ping.

I put the binary inside a alpine docker image (Link) and it's been running good for more than 2 weeks.

@tduck973564
Copy link

You need "github.com/jstaf/onedriver/cmd/common" in the imports in cmd/onedriver/xdg.go or else it doesn't build.

@yousong
Copy link
Author

yousong commented Aug 5, 2024

You need "github.com/jstaf/onedriver/cmd/common" in the imports in cmd/onedriver/xdg.go or else it doesn't build.

@tduck973564 Indeed. Thank you for the review. I added the line and tested the compilation. It should work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants