From 3c75202f5f4e9c1c61fead33f0f08e742d143223 Mon Sep 17 00:00:00 2001 From: cbdev Date: Thu, 20 Jun 2019 12:44:23 +0200 Subject: Implement keep-alive pings (Fixes #4) --- README.md | 2 ++ config.c | 6 ++++++ config.h | 1 + websocket.c | 6 +++--- websocket.h | 2 +- websocksy.c | 40 ++++++++++++++++++++++++++++++++-------- websocksy.h | 1 + 7 files changed, 46 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index b1decc9..369f44d 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,7 @@ at the time. * `-p `: Set the listen port for incoming WebSocket connections (Default: `8001`) * `-l `: Set the host for listening for incoming WebSocket connections (Default: `::`) +* `-k `: Set the inactivity timeout for sending WebSocket keep-alive pings * `-b `: Select external backend * `-c