Gio.Socket.prototype.get_keepalive
function get_keepalive(): Boolean { // Gjs wrapper for g_socket_get_keepalive() }
Gets the keepalive mode of the socket. For details on this, see Gio.Socket.prototype.set_keepalive.
Since 2.22
- Returns
true if keepalive is active, false otherwise.