Page 1 of 1

Does `open socket` work with unix domain sockets?

Posted: Fri Apr 05, 2019 10:57 pm
by trevordevore
I'm experimenting with watchman and trying to use the socket interface. It uses a unix domain socket. From the command line I can get the path to the file by issuing the following command:

Code: Select all

watchman get-sockname
The output providers the path to the file:

Code: Select all

{
    "version": "4.9.0",
    "sockname": "/usr/local/var/run/watchman/USERNAME-state/sock"
}
I tried connecting with `open socket` but I get an error about resolving the domain:

Code: Select all

open socket to "/usr/local/var/run/watchman/USERNAME-state/sock" with message "ConnectionMade"
  if the result is not empty then
    answer the result
  end if
 
I also tried prefixing the file path with udg:// and file:// but not luck.

Are unix domain sockets supported in LiveCode?