@wufe/synic
v1.0.7
Published
Client-Server application for transfering files over HTTP automatically.
Downloads
2
Readme
Synic
Client-Server application for transfering files over HTTP automatically.
The protocol is simple:
- When the server starts, it starts to resolve md5 hashes of the files
- The client starts oauth2 machine-to-machine authentication
- Once got the access token, use it for all of the following calls
- The client asks if there's something to do
- The server responds no, if there's nothing to do
- The server responds yes if there's a file to transfer, and gives the path for the file, with a status
- The client calls the url given by the server, and checks its status (if it's available to download)
- If it is available to download, downloads it
- Once finished, the client checks the checksum of the file
- If the checksum is correct, sends an ACK to the server, which discards the file