• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

codetheweb / tuyapi / 103
58%

Build:
DEFAULT BRANCH: master
Ran 25 Oct 2018 10:36PM UTC
Jobs 1
Files 2
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
103

push

travis-ci

codetheweb
Add persistent connection with event emitting (#88)

* Support for productKey

* Add documentation on product key

* Event driven

* working

* Auto recovery of disconnected devices

* Events

* Working and stable

* - enhanced library to support persistent connection to leave connection open and keep them alive with ping/pong messages
- with persistentConnection data and other events will be emitted as events
- Events are "data", "connected", "disconnected" and "error"
- When using persistentConnection get method only return true on success because data are emitted as event
- When not using persistentConnection everything works as before
- enhanced message parser to also return the commandByte from the response to allow checking/to react on it
- When using persistentConnection an automatic reconnect happens when disconnecting

Based on the great work of @NorthernMan54

* fix linter notices

* hopefully last fixes for codestyle

* final codestyle fix

* fix decode test

* updated docs

* fix checks

* do not emit empty data

* remove unneeded file

* change logic to return get/set with data as promise and only send as event if wanted/needed. Side effect: set nly returns after the set command was "ack"ed by the device!

* Better ES6 syntax + update documentation

* Update docs

* Update examples in README

* Update event example

11 of 24 branches covered (45.83%)

Branch coverage included in aggregate %.

72 of 93 relevant lines covered (77.42%)

0.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 103.1 25 Oct 2018 10:36PM UTC 0
70.94
Travis Job 103.1
Source Files on build 103
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #103
  • dab81737 on github
  • Prev Build on master (#97)
  • Next Build on master (#104)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc