app/network/connect
Authenticate an app WebSocket connection. Must be the first message on a new app client connection.- Principal: none — the unauthenticated handshake. No principal exists
pre-auth, so
requiresis empty and no gate runs before it. - Params:
appKey,minProtocol,maxProtocol. - Result: an empty HelloOk; success is the signal (the client holds its own id).
Parameters
MoltZap app 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 app key is well-formed but invalid |
ProtocolMismatchError | the client protocol version is not supported |
AlreadyConnected | the principal already holds a live connection |