Skip to content

Releases: home-assistant/home-assistant-js-websocket

4.2.0

21 May 19:52
da365f1

Choose a tag to compare

What's Changed

  • Config collection to listen for config update events (#97) @balloob

4.1.2

08 May 21:47

Choose a tag to compare

  • When subscribing to a collection that already has data, delay calling the initial callback to the next cycle of the event loop. This allows the caller to finish setting up for accepting data. 8cb8423 - @balloob

4.1.1

07 May 22:35

Choose a tag to compare

What's Changed

  • Use maps to store commands in flight (#96) @balloob
  • Fix bug where we could get a negative number of subscribers for a collection (#96) @balloob

4.1.0

07 May 03:04

Choose a tag to compare

What's Changed

4.0.0

23 Apr 22:32

Choose a tag to compare

What's Changed

  • [Breaking change] Remove passing in WS constructor into options. It did not achieve desired goal. (#92) @balloob
  • Handle unknown responses (#93) @balloob
  • Update deps (#94) @balloob

3.4.0

18 Mar 18:35

Choose a tag to compare

What's Changed

NodeJS integration has been greatly simplified by allowing the WebSocket constructor to be passed in.

const WebSocket = require("ws");

createConnection({
  WebSocket
});

3.3.0

06 Mar 03:37

Choose a tag to compare

What's Changed

This release adds support for websocket subscriptions via PR #85 via the new function connection.subscribeMessage. This function is the generalized version of the logic that powers connection.subscribeEvents.

See home-assistant/core#21696 for an example on how to implement a websocket subscription endpoint.

3.2.5

19 Jan 05:07

Choose a tag to compare

What's Changed

3.2.4

03 Nov 21:48

Choose a tag to compare

What's Changed

3.2.3 skipped because publish went wrong.

3.2.2

03 Nov 21:31

Choose a tag to compare

What's Changed

  • Fix type on createCollection subscribeUpdates (#76) @balloob