You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ This is a websocket client written in JavaScript that allows retrieving authenti
7
7
Check [the demo](https://hass-auth-demo.glitch.me/). The repository also includes an [example client](https://github.com/home-assistant/home-assistant-js-websocket/blob/master/example.html):
8
8
9
9
Clone this repository, then go to home-assistant-js-websocket folder and run the following commands:
10
+
10
11
```bash
11
12
yarn install
12
13
yarn build
@@ -291,6 +292,10 @@ Subscribe to all or specific events on the Home Assistant bus. Calls `eventCallb
291
292
292
293
Returns a promise that will resolve to a function that will cancel the subscription once called.
293
294
295
+
Subscription will be automatically re-established after a reconnect.
Listen for events on the connection. [See docs.](#automatic-reconnecting)
@@ -299,6 +304,14 @@ Listen for events on the connection. [See docs.](#automatic-reconnecting)
299
304
300
305
Send a message to the server. Returns a promise that resolves or rejects based on the result of the server. Special case rejection is `ERR_CONNECTION_LOST` if the connection is lost while the command is in progress.
0 commit comments