-->
import Quickshell.Io
SocketServer {
active: true
path: "/path/too/socket.sock"
handler: Socket {
onConnectedChanged: {
console.log(connected ? "new connection!" : "connection dropped!")
}
parser: SplitParser {
onRead: message => console.log(`read message from socket: ${message}`)
}
}
}
If the socket server is currently active. Defaults to false.
Setting this to false will destory all active connections and delete the socket file on disk.
If path is empty setting this property will have no effect.
The path to create the socket server at.
Setting this property while the server is active will have no effect.