Channel for DB Sync protocol messages.
Handles communication between sender and receiver sites during a data sync session.
Architecture
The SENDER site hosts this channel (has data to share). The RECEIVER connects via WebSocket to pull data.
Data Flow:
- Receiver's WebSocketClient connects to this channel
- Receiver sends requests (e.g., "request:tables")
- Channel handles request by querying local database
- Channel sends response back to Receiver
Protocol Messages
From Receiver (requests)
request:capabilities- Get server capabilities/versionrequest:tables- Request list of available tablesrequest:schema- Request table schemarequest:count- Request record count for tablerequest:records- Request paginated records
To Receiver (responses)
response:capabilities- Server capabilitiesresponse:tables- List of available tablesresponse:schema- Table schema detailsresponse:count- Record countresponse:records- Paginated recordsresponse:error- Error response