Gio.Socket.prototype.get_timeout

function get_timeout(): Number(guint) {
    // Gjs wrapper for g_socket_get_timeout()
}
  

Gets the timeout setting of the socket. For details on this, see Gio.Socket.prototype.set_timeout.

Since 2.26

Returns

the timeout in seconds