Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ No cloud. No account. No Apple ID. No flaky Universal Clipboard.
## How it works

```
┌─────────────┐ UDP unicast ┌─────────────┐
│ MacBook │ ──────────────────► │ iMac │
│ clipx │ │ clipx │
│ 192.168.0.5 │ ◄────────────────── │ 192.168.0.6 │
└─────────────┘ UDP unicast └─────────────┘
┌──────────────────┐ ┌──────────────────┐
│ MacBook │ UDP :9877 │ iMac │
│ │ ──────────────► │ │
│ clipx │ │ clipx │
│ 192.168.0.5 │ ◄────────────── │ 192.168.0.6 │
└──────────────────┘ └──────────────────┘
copy ⌘C paste ⌘V
```

Each Mac runs `clipx`. When you copy something, it sends the clipboard content directly to all paired peers via UDP. When it receives content from a peer, it writes it to your local clipboard. That's it.
Each Mac runs `clipx`. When you copy something, it sends the clipboard content directly to all paired peers via UDP unicast. When it receives content from a peer, it writes it to your local clipboard. That's it.

- **UDP unicast** — reliable, fast, no firewall issues with multicast
- **Explicit pairing** — `clipx pair <ip>`, no flaky auto-discovery
Expand Down
4 changes: 1 addition & 3 deletions clipx/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import (
"github.com/google/uuid"
)

const (
pollInterval = 500 * time.Millisecond
)
const pollInterval = 500 * time.Millisecond

// Node is a clipx daemon instance that watches the local clipboard,
// broadcasts changes to peers, and applies incoming clipboard content.
Expand Down
Loading