Make watching/unwatching idempotent

pull/3846/head
Robin Townsend 3 years ago
parent 9ae90f11af
commit 474b2fbc82

@ -69,8 +69,8 @@ Both the `data` and `response` fields for this action are empty:
} }
``` ```
If the widget was already watching for TURN servers, or the client is otherwise unable to start polling (for example if If the widget was already watching, this action has no effect. If the client is for whatever reason unable to start
TURN access for the account is 403'd), the client sends back an error response. polling (for example if TURN access for the account is 403'd), the client sends back an error response.
**`fromWidget` action of `unwatch_turn_servers`** **`fromWidget` action of `unwatch_turn_servers`**
@ -86,8 +86,8 @@ TURN access for the account is 403'd), the client sends back an error response.
``` ```
This action tells the client to stop sending the widget TURN server updates. As with `watch_turn_servers`, the `data` This action tells the client to stop sending the widget TURN server updates. As with `watch_turn_servers`, the `data`
and `response` fields for this action are empty. If the widget was not already watching for TURN servers, the client and `response` fields for this action are empty. If the widget was not already watching for TURN servers, the action has
sends back an error response. no effect.
```json5 ```json5
{ {

Loading…
Cancel
Save