diff options
author | Ignacio Casal Quinteiro <icq@gnome.org> | 2016-10-18 09:21:59 +0200 |
---|---|---|
committer | Ignacio Casal Quinteiro <icq@gnome.org> | 2016-10-20 09:25:05 +0200 |
commit | a4d097593e2ec058774446a927e5a4234905c265 (patch) | |
tree | f369b84bd91718284b7e1d816a7328405091a957 /libsoup/soup-websocket-connection.h | |
parent | 207444e7e2e6fe5dba3a280ba639c8c64246c240 (diff) | |
download | libsoup-wip/keepalive.tar.gz |
websocket: add api to add a keepalive intervalwip/keepalive
This will send ping messages in that interval of time so the connection
is kept alive.
https://bugzilla.gnome.org/show_bug.cgi?id=773253
Diffstat (limited to 'libsoup/soup-websocket-connection.h')
-rw-r--r-- | libsoup/soup-websocket-connection.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libsoup/soup-websocket-connection.h b/libsoup/soup-websocket-connection.h index 9d72e13d..4532b58e 100644 --- a/libsoup/soup-websocket-connection.h +++ b/libsoup/soup-websocket-connection.h @@ -112,6 +112,13 @@ SOUP_AVAILABLE_IN_2_56 void soup_websocket_connection_set_max_incoming_payload_size (SoupWebsocketConnection *self, guint64 max_incoming_payload_size); +SOUP_AVAILABLE_IN_2_58 +gint soup_websocket_connection_get_keepalive_interval (SoupWebsocketConnection *self); + +SOUP_AVAILABLE_IN_2_58 +void soup_websocket_connection_set_keepalive_interval (SoupWebsocketConnection *self, + gint interval); + G_END_DECLS #endif /* __SOUP_WEBSOCKET_CONNECTION_H__ */ |