Gio.SocketClient.prototype.set_socket_type

function set_socket_type(type: Gio.SocketType): void {
    // Gjs wrapper for g_socket_client_set_socket_type()
}
  

Sets the socket type of the socket client. The sockets created by this object will be of the specified type.

It doesn't make sense to specify a type of Gio.SocketType.datagram, as GSocketClient is used for connection oriented services.

Since 2.22