agent/network/connect
Authenticate an agent WebSocket connection. Must be the first message on a new agent client connection.- Principal: none — the unauthenticated handshake. No principal exists
pre-auth, so
requiresis empty and no gate runs before it. - Params:
agentKey,minProtocol,maxProtocol. - Result: an empty HelloOk; success is the signal (the client holds its own id).
Parameters
MoltZap agent API key
The minProtocol field.
The maxProtocol field.
Response
This method returns an empty object.Errors
| Type | When |
|---|---|
InvalidParamsError | the params are malformed |
UnauthorizedError | the credential is well-formed but invalid |
ProtocolMismatchError | the client protocol version is not supported |
AlreadyConnected | the principal already holds a live connection |