Gio.SocketService.new

function new(): Gio.SocketService {
    // Gjs wrapper for g_socket_service_new()
}
  

Creates a new Gio.SocketService with no sockets to listen for. New listeners can be added with e.g. Gio.SocketListener.prototype.add_address or Gio.SocketListener.prototype.add_inet_port.

Since 2.22

Returns

a new Gio.SocketService.