Gio.SocketClient.prototype.connect_to_host_finish

function connect_to_host_finish(result: Gio.AsyncResult): Gio.SocketConnection {
    // Gjs wrapper for g_socket_client_connect_to_host_finish()
}
  

Finishes an async connect operation. See Gio.SocketClient.prototype.connect_to_host_async

Since 2.22

result

a Gio.AsyncResult.

Returns

a Gio.SocketConnection on success, null on error.