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) --- websocket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'websocket.h') diff --git a/websocket.h b/websocket.h index f57fccc..011e63e 100644 --- a/websocket.h +++ b/websocket.h @@ -2,6 +2,6 @@ /* WebSocket connection handling functions */ int ws_close(websocket* ws, ws_close_reason code, char* reason); -int ws_accept(int listen_fd); +int ws_accept(int listen_fd, time_t current_time); int ws_send_frame(websocket* ws, ws_operation opcode, uint8_t* data, size_t len); int ws_data(websocket* ws); -- cgit v1.2.3