Authentication for websockets.
WebSocket connections are stateful, making the authentication process connection-oriented.
-
Request an Account Token:
- Use the
PUBLISH get_account_tokenrequest outlined here.
- Use the
-
Sign the Token:
- The client signs the retrieved token using their private key from the wallet associated with the account.
-
Authenticate the Connection:
- Use the
PUBLISH authenticaterequest outlined here with the signed token.
- Use the
-
Connection is Authenticated:
- The WebSocket connection can now make requests on behalf of the account.
