Skip to content

Commit

Permalink
Added oauth as a valid token_type (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
c4ldas authored Sep 27, 2023
1 parent c87f0b2 commit 2948fcb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/websockets/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The following parameters are used in a client-to-server request:
| `nonce` | `string` | A unique identifier for the request. Useful for identifying the corresponding response (Optional). |
| `data.topic` | `string` | The topic to which the client wishes to subscribe. |
| `data.token` | `string` | The token used to authenticate the request. |
| `data.token_type` | `string` | Specifies the type of token. Valid options are `apikey` and `jwt`. |
| `data.token_type` | `string` | Specifies the type of token. Valid options are `apikey`, `jwt` and `oauth`. |

Here is an example of a client-to-server request:

Expand Down Expand Up @@ -52,7 +52,10 @@ Here is an example of a server-to-client response:
"ts": "2023-09-20T16:43:21Z",
"type": "response",
"nonce": "86ccb2b3-eb8d-4b3c-902d-509c3f5ca88c",
"data": "successfully subscribed to topic"
"data": {
"message": "successfully subscribed to topic",
"topic": "channel.follow"
}
}
```

Expand Down

0 comments on commit 2948fcb

Please sign in to comment.