URI Scheme: antekasync://
antekasync://[auth_key@]host:port
- auth_key: (Optional) The secret key for authentication.
- host: Hostname or IP of the Antek Gateway.
- port: TCP Port (Default: 4000).
- Connect: Client opens TCP connection to
host:port. - Auth (Optional):
- If
auth_keyis provided, Client sends:AUTH|auth_key\n - Server responds:
AUTH|OK\norAUTH|FAIL\n.
- If
- Operation:
- Publish:
PUB|topic|payload\n - Subscribe:
SUB|topic\n - Message: Server sends
MSG|topic|payload\nto subscribers.
- Publish:
- Error: Server sends
ERROR|CODE\n.
- Delimiters:
|(Pipe) separates fields. - Terminator:
\n(Newline) separates messages. - Encoding: UTF-8.
Client connects:
antekasync://secret@127.0.0.1:4000
Handshake:
C -> S: AUTH|secret
S -> C: AUTH|OK
Subscribe:
C -> S: SUB|suhu
Message Received:
S -> C: MSG|suhu|30C