Skip to content

Releases: RoonLabs/node-roon-api

1.2.1: minor crash fix

28 Sep 17:35
Compare
Choose a tag to compare

1.2.0: Merge pull request #14 from RoonLabs/fix-core_paired

25 Sep 22:31
fc06320
Compare
Choose a tag to compare

RoonApi.connect_to_host() was renamed to ws_connect() and its arguments were changed into a single options object argument. The tcp_port option was removed, and the http_port option was renamed port. cb was renamed to onclose.

RoonApi.connect_to_host_with_token() was renamed to ws_connect_with_token, with similar argument changes to connect_to_host() -> ws_connect().

all invalid moo messages will log and break the connection. This includes messages not obeying the rules of content-type and content-length.

empty websocket messages will result in empty moo messages, which are invalid and will log and break the connection.

moo responses with an unknown Request-Id field will log and then break the connection.

websocket transport's onclose/close handling is much more consistent when it comes to different websocket/http engines.

changed how Sood module is initialized to allow for logger being passed in

reverted/simplified moo message parsing to assume 1 buffer == 1 moo message -- this is ok because we use websockets only. if we use tcp in the future, then this needs to be enhanced.