Skip to content

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

Open
yousong wants to merge 4 commits intojstaf:masterfrom
yousong:yousong
Open

Use near-real-time change notifications for fetching delta#403
yousong wants to merge 4 commits intojstaf:masterfrom
yousong:yousong

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.

@fesdonomist
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.

@yousong
Copy link
Author

yousong commented Feb 19, 2025

Friendly ping.

NBA2K1 added a commit to NBA2K1/OneDriver that referenced this pull request May 26, 2025
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