Gio.SocketService.prototype.stop
function stop(): void { // Gjs wrapper for g_socket_service_stop() }
Stops the service, i.e. stops accepting connections from the added sockets when the mainloop runs.
This call is thread-safe, so it may be called from a thread handling an incoming client request.
Note that this only stops accepting new connections; it does not close the listening sockets, and you can call Gio.SocketService.prototype.start again later to begin listening again. To close the listening sockets, call Gio.SocketListener.prototype.close. (This will happen automatically when the Gio.SocketService is finalized.)
Since 2.22