From 783d80d799744660ca87b3434196065cd1b3b29c Mon Sep 17 00:00:00 2001 From: Danny Tuppeny Date: Mon, 22 Apr 2019 17:36:07 +0100 Subject: [PATCH] Add a note about events coming from the server (#31419) --- packages/flutter_tools/doc/daemon.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/flutter_tools/doc/daemon.md b/packages/flutter_tools/doc/daemon.md index 4b54e2ad0e..aa94ba4751 100644 --- a/packages/flutter_tools/doc/daemon.md +++ b/packages/flutter_tools/doc/daemon.md @@ -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