conwetlab / ngsi-proxy

Proxy allowing receiving notifications from Orion Context Broker on browser environments
GNU Affero General Public License v3.0
8 stars 10 forks source link

Send heartbeat/keepalive messages through event sources to avoid they get closed #17

Closed aarranz closed 3 years ago

aarranz commented 3 years ago

This PR adds support for sending heartbeat messages so browsers doesn't close the connection. Also, this PR adds support for cleaning expired connections when sending heartbeats. The default interval for heartbeats is 30s and connections are removed if the client does not reconnect in 24h.

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 809814182


Changes Missing Coverage Covered Lines Changed/Added Lines %
logic.js 19 22 86.36%
app.js 0 6 0.0%
<!-- Total: 19 28 67.86% -->
Totals Coverage Status
Change from base Build 809586833: -3.3%
Covered Lines: 250
Relevant Lines: 278

💛 - Coveralls