The xs socket module for Linux desktop is designed to run in the context of the simulator. It uses GTK. Getting it to work in the x-cli-lin platform might be a little tricky.
done except:
see also Moddable-OpenSource/moddable#298
cc @dtribble @warner