Wayland.Unix_transport
Send messages over a Unix-domain socket.
type t =
< S.transport
; close : unit
; socket : Eio_unix.Net.stream_socket_ty Eio.Resource.t >
val of_socket : _ Eio_unix.Net.stream_socket -> t
socket_path ()
returns the path to the wayland socket to use.
val connect : sw:Eio.Switch.t -> net:Eio_unix.Net.t -> unit -> t
connect ~sw ~net ()
connects to the Wayland server's socket:
socket_path ()
is used.