Skip to content

Commit 2948fcb

Browse files
authored
Added oauth as a valid token_type (#10)
1 parent c87f0b2 commit 2948fcb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

docs/websockets/index.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The following parameters are used in a client-to-server request:
1616
| `nonce` | `string` | A unique identifier for the request. Useful for identifying the corresponding response (Optional). |
1717
| `data.topic` | `string` | The topic to which the client wishes to subscribe. |
1818
| `data.token` | `string` | The token used to authenticate the request. |
19-
| `data.token_type` | `string` | Specifies the type of token. Valid options are `apikey` and `jwt`. |
19+
| `data.token_type` | `string` | Specifies the type of token. Valid options are `apikey`, `jwt` and `oauth`. |
2020

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

@@ -52,7 +52,10 @@ Here is an example of a server-to-client response:
5252
"ts": "2023-09-20T16:43:21Z",
5353
"type": "response",
5454
"nonce": "86ccb2b3-eb8d-4b3c-902d-509c3f5ca88c",
55-
"data": "successfully subscribed to topic"
55+
"data": {
56+
"message": "successfully subscribed to topic",
57+
"topic": "channel.follow"
58+
}
5659
}
5760
```
5861

0 commit comments

Comments
 (0)