Simple and naïve library that can read and write from and to a Unix domain socket using libuv.

unixsocket

Installation

libraryDependencies += "com.fiatjaf" %%% "sn-unixsocket" % "0.1.0"

Simple usage

import unixsocket.UnixSocket

UnixSocket
  .call(socketPath, payload)
  .future
  .onComplete {
    case Success(str) => println(s"got response from socket: $str")
    case Failure(exc) => println("oh no!")
  }