Gio.SocketClient.prototype.connect_to_uri_async
function connect_to_uri_async(uri: String, default_port: Number(guint16), cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_socket_client_connect_to_uri_async() }
This is the asynchronous version of Gio.SocketClient.prototype.connect_to_uri.
When the operation is finished callback will be called. You can then call Gio.SocketClient.prototype.connect_to_uri_finish to get the result of the operation.
Since 2.26
- uri
a network uri
- default_port
the default port to connect to
- cancellable
a Gio.Cancellable, or null
- callback