Quickshell


Socket: DataStream

import Quickshell.Io
Unix socket listener.
  • connected bool

    Returns if the socket is currently connected.

    Writing to this property will set the target connection state and will not update the property immediately. Setting the property to false will begin disconnecting the socket, and setting it to true will begin connecting the socket if path is not empty.

  • path string

    The path to connect this socket to when Go to connected is set to true.

    Changing this property will have no effect while the connection is active.

  • flush() void

    Flush any queued writes to the socket.

  • write(data) void

    Property datastring

    Write data to the socket. Does nothing if not connected.

    Remember to call flush after your last write.

  • error(error)   ?

    Property error

    This signal is sent whenever a socket error is encountered.