Gio.SocketClient.prototype.connect_to_service_async

function connect_to_service_async(domain: String, service: String, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for g_socket_client_connect_to_service_async()
}
  

This is the asynchronous version of Gio.SocketClient.prototype.connect_to_service.

Since 2.22

domain

a domain name

service

the name of the service to connect to

cancellable

a Gio.Cancellable, or null

callback

a Gio.AsyncReadyCallback