Does `open socket` work with unix domain sockets?
Posted: Fri Apr 05, 2019 10:57 pm
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:
The output providers the path to the file:
I tried connecting with `open socket` but I get an error about resolving the domain:
I also tried prefixing the file path with udg:// and file:// but not luck.
Are unix domain sockets supported in LiveCode?
Code: Select all
watchman get-sockname
Code: Select all
{
"version": "4.9.0",
"sockname": "/usr/local/var/run/watchman/USERNAME-state/sock"
}
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
Are unix domain sockets supported in LiveCode?