Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-88] appcd-core: Add heartbeat to WebsocketSession

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusResolved
ResolutionWon't Fix
Resolution Date2017-12-01T18:26:25.000+0000
Affected Version/sn/a
Fix Version/sAppc Daemon 1.0.0
Componentsappcd-core
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2017-05-23T20:32:02.000+0000
Updated2017-12-01T18:26:25.000+0000

Description

Currently there is no mechanism to detect if the Websocket client is borked. This can be accomplished using a ping/pong heartbeat. Clients opt-in by setting the x-heartbeat HTTP header. When set, the WebsocketSession will send a "ping" event every 30 seconds to the client. The client has 5 seconds to respond with a "pong", otherwise the connection is closed by the server.

Comments

  1. Chris Barber 2017-12-01

    We can't think of a good reason to implement this.

JSON Source