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")