Skip to content

v0.2.0#2

Merged
toebeann merged 9 commits intomainfrom
dev
Aug 4, 2022
Merged

v0.2.0#2
toebeann merged 9 commits intomainfrom
dev

Conversation

@toebeann
Copy link
Copy Markdown
Collaborator

@toebeann toebeann commented Aug 4, 2022

  • 4b38900
    • Added a ping option to Procedure.call(). When set to a number, this is the number of milliseconds it will wait for a valid pong before making the call. Useful when the Procedure is expected to take a long time to respond to a call to shortcircuit the waiting time if the endpoint is down. By default Procedure.call() will not ping the endpoint.
    • Added static method Procedure.ping(), which can be used to manually ping an endpoint. If endpoint is not a Procedure or times out waiting for a response, will return false. Useful for when you wish to make multiple calls to an endpoint in relatively quick succession - rather than pinging each time, you can merely ping once before the first call.
    • The timeout option of Procedure.call() will no longer be ignored when the signal option is set - instead the Promise will be rejected when either it times out or the signal is aborted.
    • Timeouts will now be clamped between 0 and Number.MAX_SAFE_INTEGER for sanity purposes, except when they are NaN or +/-Infinity - in these cases they will never timeout.
  • a907798 Added a new event to Procedure instances: data. Will be fired whenever the Procedure receives data and will be passed the input data. This is mainly useful for additional monitoring and logging, as the input data will already be passed to the Procedure's backing callback.
  • Update unit tests #1

@toebeann toebeann added bug Something isn't working enhancement New feature or request labels Aug 4, 2022
@toebeann toebeann self-assigned this Aug 4, 2022
@toebeann toebeann merged commit 81f0c5a into main Aug 4, 2022
@toebeann toebeann deleted the dev branch August 4, 2022 23:39
@toebeann toebeann restored the dev branch August 4, 2022 23:39
@toebeann toebeann deleted the dev branch August 4, 2022 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant