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

codetheweb / tuyapi / 103 / 1
58%
master: 58%

Build:
DEFAULT BRANCH: master
Ran 25 Oct 2018 10:36PM UTC
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

25 Oct 2018 10:34PM UTC coverage: 70.94% (+1.0%) from 69.912%
103.1

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

Source Files on job 103.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 71
  • Travis Job 103.1
  • dab81737 on github
  • Prev Job for on master (#97.1)
  • Next Job for on master (#104.1)
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