Avoid closing of web socket during the idle time

"/subscribe" route of web socket is getting closed if it remains
idle for more than 60 seconds. Once web socket get closed, it can't
handle further event notifications. To avoid this, send a ping to
wake it up during constant intervals.

Resolves: Part of openbmc/openbmc#3102

Tested: Running GUI locally and verified the command line and web gui
power on/off operations. Also could not see web socket getting closed
during idle time.

Change-Id: Ic3da0d30b99d1c3ac5ce4311204e6f6b09b8c1f0
Signed-off-by: Jayashankar Padath <jayashankar.padath@in.ibm.com>
1 file changed
tree: 7930bd4c6e1dea12aaa2957cd4cbf4cb4a6d8efd
  1. module/
  2. servers/
  3. LICENSE
  4. MAINTAINERS