Skip to content

A program that makes use of websockets to provide a real-time interface for simple LAN file transfer.

License

Notifications You must be signed in to change notification settings

WatDuhHekBro/ZTransfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZTransfer

A program that makes use of websockets to provide a real-time interface for simple LAN file transfer. Not intended for public facing servers, as this assumes that all users on your network are trusted individuals. Currently very limited.

Use Cases

  • Transfer files between different computers on a home network without the need of a flash drive or some other hardware.
  • Provide a transfer mechanism between a host machine and a guest machine in case you're too lazy to setup shared folders with a VM.

"Documentation"

Command Line Use

  • ztransfer starts the server on whatever the .env specifies or port 3000
  • ztransfer (port) starts the server on a specified port, ignoring .env

Server-To-Client Messages

Files with the same name will replace each other.

{
	"action": "ADD_FILE",
	"filename": "test.txt",
	"size": 86000
}
{
	"action": "REMOVE_FILE",
	"filename": "test.txt"
}
{
	"action": "UPLOAD_PROGRESS",
	"filename": "test.txt",
	"progress": 5,
	"total": 10
}

Client-To-Server Messages

{
  "action": "SEND_DELETE_REQUEST",
  "filename": "test.txt"
}

About

A program that makes use of websockets to provide a real-time interface for simple LAN file transfer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published