Launch an Xspice and run:
echo -ne "\033]844;127.0.0.1;9876\007"
This will launch a SPiCE client connecting to 127.0.0.1:9876.
Still need to add all the security stuff and generally be
more defensive in the implementation.
Safari doesn't support basic authentication for websocket sessions.
This commit introduces a token-based authentication only for websocket
connection.
The token is shared by all clients and that might be not secure. However,
basic authentication itself is insecure and the credential is already
shared by clients, so don't mind.