Gio.SocketClient.prototype.connect_async
function connect_async(connectable: Gio.SocketConnectable, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_socket_client_connect_async() }
This is the asynchronous version of Gio.SocketClient.prototype.connect.
When the operation is finished callback will be called. You can then call Gio.SocketClient.prototype.connect_finish to get the result of the operation.
Since 2.22
- connectable
a Gio.SocketConnectable specifying the remote address.
- cancellable
a Gio.Cancellable, or null
- callback