home-assistant-js-websocket

JavaScript websocket client for Home Assistant

OTHER License

Downloads
14.7K
Stars
271
Committers
24

Bot releases are visible (Hide)

home-assistant-js-websocket - 5.1.2

Published by release-drafter[bot] over 4 years ago

Remove modern export types that was confusing older node versions #113

home-assistant-js-websocket - 5.1.1

Published by release-drafter[bot] over 4 years ago

What's Changed

  • Add new external & internal URL core configs to HassConfig (#115) @frenck
home-assistant-js-websocket - 5.1.0

Published by release-drafter[bot] over 4 years ago

What's Changed

  • Fix/typescript node websocket (#111) @Julusian
  • Add helper function to create auth object with long lived access token (#111) @Julusian
home-assistant-js-websocket - 5.0.0

Published by balloob over 4 years ago

Migrate from microbundle to tsc to create the module version and use rollup to create the UMD version. Our module build will now not be bundled up but just be ES2017 code using native async/await. It's up to consumers of this package to decide on how to deal with this.

Tests are also run against the transpiled build so we're testing against prod builds.

To make our module build browser compatible, we're now requiring all import specifiers to include .js.

Dropped Object.assign too in favor of ...

home-assistant-js-websocket - 4.5.0

Published by release-drafter[bot] over 4 years ago

What's Changed

  • Add Home Assistant version to connection class (#109) @balloob
home-assistant-js-websocket - 4.4.1

Published by release-drafter[bot] over 4 years ago

What's Changed

  • Add safe_mode to core config type
home-assistant-js-websocket - 4.4.0

Published by release-drafter[bot] about 5 years ago

What's Changed

  • Allow null client ID (#107) @balloob
home-assistant-js-websocket - 4.3.1

Published by release-drafter[bot] over 5 years ago

What's Changed

  • Fix https check and always propagate errors if get auth fails (#104) @balloob
home-assistant-js-websocket - 4.3.0

Published by release-drafter[bot] over 5 years ago

What's Changed

  • Update dependencies (#103) @balloob
  • Raise on active mixed content (#102) @balloob
home-assistant-js-websocket - 4.2.0

Published by release-drafter[bot] over 5 years ago

What's Changed

  • Config collection to listen for config update events (#97) @balloob
home-assistant-js-websocket - 4.1.2

Published by balloob over 5 years ago

  • 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. 8cb8423387dc571efde5a30f4ac405cd45c3c518 - @balloob
home-assistant-js-websocket - 4.1.1

Published by release-drafter[bot] over 5 years ago

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
home-assistant-js-websocket - 4.1.0

Published by release-drafter[bot] over 5 years ago

What's Changed

  • Allow passing in auth code (#95) @balloob
home-assistant-js-websocket - 4.0.0

Published by release-drafter[bot] over 5 years ago

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
home-assistant-js-websocket - 3.4.0

Published by release-drafter[bot] over 5 years ago

What's Changed

  • Update deps (#86) @balloob
  • Refresh token asap (#88) @balloob
  • Allow passing in WebSocket constructor (#87) @balloob

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

const WebSocket = require("ws");

createConnection({
  WebSocket
});
home-assistant-js-websocket - 3.3.0

Published by release-drafter[bot] over 5 years ago

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 https://github.com/home-assistant/home-assistant/pull/21696 for an example on how to implement a websocket subscription endpoint.

home-assistant-js-websocket - 3.2.5

Published by release-drafter[bot] almost 6 years ago

What's Changed

  • Fix type for getUser (#78) @balloob
  • Update README.md (#79) @tinchox5
  • Update type of service description (#82) @balloob
  • Hidden is optional (type) (#84) @balloob
  • Add context to HassEntityBase type (#83) @balloob
home-assistant-js-websocket - 3.2.4

Published by release-drafter[bot] almost 6 years ago

What's Changed

  • Fix calling sub right away (#77) @balloob

3.2.3 skipped because publish went wrong.

home-assistant-js-websocket - 3.2.2

Published by release-drafter[bot] almost 6 years ago

What's Changed

  • Fix type on createCollection subscribeUpdates (#76) @balloob
home-assistant-js-websocket - 3.2.1

Published by release-drafter[bot] almost 6 years ago

What's Changed

  • Fix support for optional subscribeUpdates (#75) @balloob