fitbit-file-messaging

1.3.8 • Public • Published

Drop-in replacement for Fitbit peer socket messaging - just replace the imports (in both app and companion)

- import * as messaging from 'messaging';
+ import * as messaging from 'fitbit-file-messaging';
messaging.peerSocket.onmessage = evt => {
    // this code doesn't change
}
messaging.peerSocket.addEventListener('open', evt => {
    // this code doesn't change
})
messaging.peerSocket.send(data)

This messaging uses file transfer under the hood, so it's more reliable than regular messaging.

Readme

Keywords

Package Sidebar

Install

npm i fitbit-file-messaging

Weekly Downloads

1

Version

1.3.8

License

MIT

Unpacked Size

23.4 kB

Total Files

4

Last publish

Collaborators

  • ygalanter