# `PhoenixKitWeb.SyncSocket`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.62/lib/modules/sync/web/socket.ex#L1)

Socket for DB Sync module.

This socket accepts external WebSocket connections from sender sites
that want to connect using a connection code.

## Authentication

Senders connect by providing:
- `code` - The 8-character connection code from the receiver

The socket validates the code and associates the connection with
the receiver's session.

## Example Connection

    // On sender site (using websockex or JS WebSocket)
    const socket = new WebSocket("wss://receiver-site.com/sync/websocket?code=ABC12345")

---

*Consult [api-reference.md](api-reference.md) for complete listing*
