Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@relaypro/sdk

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@relaypro/sdk - npm Package Versions

2

2.4.0

Diff

Changelog

Source

[2.4.0] - TBD

brandonsmith
published 2.3.0 •

brandonsmith
published 2.1.1 •

brandonsmith
published 2.1.0 •

brandonsmith
published 2.0.0 •

Changelog

Source

[2.0.0] - 2022-02-24

BREAKING CHANGES

Relay infrastructure has undergone some major refactoring of how workflows are processed. As a result, breaking changes in the SDK are required in order to support these changes.

For more details, please read the migration guide, which explains the rationale for the major change.

Changed

  • Nearly every function signature has changed.
brandonsmith
published 1.2.3 •

brandonsmith
published 1.2.2 •

brandonsmith
published 1.2.1 •

brandonsmith
published 1.2.0 •

brandonsmith
published 1.1.0 •

Changelog

Source

[1.1.0] - 2021-06-04

Added

  • Improved README.md documentation with explanation of a simple workflow sampl
  • Support incident event
  • Add optional push_opts on notification functions
  • Add optional suppressTTS parameter on setChannel
  • New workflow events
    • Event.STOP or stop emitted when ibot has ended the workflow
    • Event.ERROR or error emitted when
      • An error response is received from ibot
      • Workflow event processing throws an error
      • Action is sent to ibot but websocket connection is closed
  • New workflow actions available:
    • restartDevice() and powerDownDevice() restarts and powers down a Relay device (not an App or Dash, of course)
    • ledAction(effect, args) more general and robust LED action that other LED actions can build upon
    • setDeviceMode(mode) put a device in panic or alarm mode
    • placeCall(call), answerCall(call), and hangupCall(call) enable initiating and managing calling via workflows
    • stopPlayback(id) will stop audio playback initiated by say() and play()
    • setTimer(type, name, timeout, timeout_type) and clearTimer(name) enable managing timers set in the workflow. There exist some use cases that managing the timer hosted in Relay Servers avoids certain workflow coordination pitfalls.
    • unsetVar(name) and unset(name[]) enables deleting variables set by setVar() and set()
  • Initial (but disabled) implementation of syncing documentation to readme.io

Changed

  • Serially execute event handlers. This will allow for more predictable processing. For instance, subsequent workflow events are not processed until previously emitted events are completed.
  • Notification actions now have a separate time out of 60 seconds. At present, notification actions are synchronous in delivery. As a result, when a workflow targets a large number of devices, the default action timeout of 5 seconds would frequently be met. Initial solution is to increase notification action timeout to 60 seconds. In the future semantics may be changed to asynchronous processing of notificaiton actions.
  • setChannel() method signature has changed
  • say() and play() both now return an identifier that can be used with new stopPlayback() to stop the ongoing playback of spoken text or a sound.

Removed

  • Section about "changelog" vs "CHANGELOG".
2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc