Problem is, when I try and connect() I get “no such file or directory” – how do I create that socket in the first place? mkfifo /tmp/foo which someone recommended me gets me a “connection refused” error instead (I don’t think a fifo is the same thing as a domain socket?).

Is there any minimal working example out there of using luasocket on a unix domain socket?