-
Added
proxied
attribute. When set to true ignores the endpoint protocol, host & port returned in the hello message and uses the values passed to the connection. Useful when Signal K server accessed via a proxy. -
Added
api.observeResponse
attribute which when set totrue
results in the entire HTTP response being available forapi.post()
,api.put()
andapi.delete()
rather than just theresponse.body
. (Default isfalse
).
Breaking Changes:
-
Changed
uuid()
function to return a string containing the UUID value and not a UUID object. -
Added
signalkUuid()
function to return a Signal K v1 UUID string. -
Removed patch for working around the issue when using PUT to update resources. Note: This library now requires a version of Signal K server that implements the
Resources API
. -
Removed support for legacy Signal K server path
/webapps
.
-
Updated to support Angular Ivy.
-
Added API
raiseAlarm()
andclearAlarm()
methods. -
Updated STREAM
raiseAlarm()
andclearAlarm()
methods to use PUT.
-
Add support for storing client data on the server via the
applicationData
path. -
Add
isLoggedin()
method to query if a user is authenticated on the server.
Breaking Changes:
The following methods now return an Observable
rather than a Promise
.
connect()
connectStream()
connectPlayback()
To continue using Promise
s update your code to use the following methods:
connectAsPromise()
connectStreamAsPromise()
connectPlaybackAsPromise()
-
Removed
worker
object. Usesignalk-worker-angular
to interact with Signal K stream via a web worker. -
Update
apps
to work withsignalk-node-server
(v1.24.0 or higher) support for the app API.
- Add
apps
object to provide inital support for proposed API for installed applications on SignalK server.
- Add support for using
stream
object in Angular Web Worker.
Note: The worker
object will be deprecated in future releases.
- Fix url parameter processing issue.
-
Added
stream.sendRequest()
method. -
Added
stream.login()
method. -
Signal K Resources: The following methods have been added/updated to align with proposed
resources
section of the specification.-
Added
api.post()
method for use with resource creation. -
Added
api.delete()
method for removing resources. -
updated
api.put()
to ensure the resource uuid is part of the path. -
Added
api.put(path, value)
overload definition.
-
This version represents a significant refactoring of SignalKClient to better align it with recent enhancements to the Signal K specification. It contains MANY BREAKING CHANGES so please review the README before upgrading!
It introduces the new classes to interact with Signal K API's:
api: class for interacting with Signal K HTTP API endpoint path
stream: class for interacting with Signal K STREAM API endpoint path
It also provides a worker class as a wrapper for WebWorker scripts to enable moving Signal K data processing off the main thread.
- updated to align with updated security specification.
- add support for History Playback api via
playback()
,connectPlayback()
andsnapshot()
methods - added
isConnected
property
- bug fixes: corrects issue where secure connection to web socket endpoint was using
ws://
rather thanwss://
- bug fixes
- bug fixes
- added overloaded apiPut() method
apiPut(context, path, value)
- added put() and post() to enable these actions to urls outside the /signalk/v1/api/ scope.
-
added Alarm functionality
raiseAlarm()
,clearAlarm()
. -
added ability to see if Signal K server has security enabled via the
authRequired
attribute. -
get list of supported api versions by server via the
apiVersions
attribute.
-
added
connectionTimeout
attribute. -
added
sendUpdate()
function to enable updates to be sent to Delta Stream. -
added support for Authentication via
authtoken
attribute andlogin()
function.
connectDelta()
function added to allow connection to servers that do not reply with an HTTP discovery response detailing service endpoints.
BREAKING CHANGES:
version
attribute is now a number not a string.
Initial Release