authorization

Websocket Request for authorization.

1. Request

param

type

description

type

string

'authorization'

token

string

access_token that you have.

// request

{"type": "authorization", "token": "2DAXR9wApakvhDNQUUr1LWhulWduTkfSZLA7GQL5IRE="}

2. Responses

param

type

description

channel

string

'authorization'

result

string

'ok'

//response

{"type":"authorization","result":"ok"}

❗️

INVALID_ARGUMENT Error

already authorized: you already authorized with this client. Authorize request will be ignored.

❗️

UNAUTHORIZED Error

Invalid access token or malformed request