Add a note about events coming from the server (#31419)

This commit is contained in:
Danny Tuppeny 2019-04-22 17:36:07 +01:00 committed by GitHub
parent 77ab0b8321
commit 783d80d799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,12 @@ Any params for that command should be passed in through a `params` field. Here's
[{"id":2,"result":[{"id":"702ABC1F-5EA5-4F83-84AB-6380CA91D39A","name":"iPhone 6","platform":"ios_x64","available":true}]}]
```
Events that come from the server will have an `event` field containing the type of event, along with a `params` field.
```
[{"event":"device.added","params":{"id":"1DD6786B-37D4-4355-AA15-B818A87A18B4","name":"iPhone XS Max","platform":"ios","emulator":true}}]
```
## Domains and Commands
### daemon domain