mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-19 07:16:29 +00:00
Clarify the meaning and usage of the "id" field in a websocket message (#2244)
This commit is contained in:
parent
7ac7af4cd5
commit
394fc9777c
@ -23,7 +23,7 @@ During the command phase, the client attaches a unique identifier to each messag
|
||||
|
||||
## Message format
|
||||
|
||||
Each API message is a JSON serialized object containing a `type` key. After the authentication phase messages also must contain an `id`, an integer that contains the number of interactions.
|
||||
Each API message is a JSON serialized object containing a `type` key. After the authentication phase messages also must contain an `id`, an integer that the caller can use to correlate messages to responses.
|
||||
|
||||
Example of an auth message:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user