Gio.SocketConnection.prototype.is_connected
function is_connected(): Boolean {
// Gjs wrapper for g_socket_connection_is_connected()
}
Checks if connection is connected. This is equivalent to calling Gio.Socket.prototype.is_connected on connection's underlying Gio.Socket.
Since 2.32
- Returns
whether connection is connected