Test SharedProtocol
This page loads the real sharedprotocol.js and calls it. Run the feature checks, or type any function name and call it yourself.
Page code runs as the SPNode user, which has no CAP_FS, so file operations are refused. This switch grants it in this tab only. Untick it to see the real refusals.
Feature checks
Call any function
Name a function and give its arguments as a JSON array. kvSet, sp.git.status and spp.call all work. Functions that take a callback cannot be called from here, since JSON has no functions.
Result appears here.
Test SPP
SPP works only while this page is connected to the host. Start the host and let it open this page:
./sharedprotocol --site-used this-site
It opens the page with the bridge settings in the address fragment. Already running with a fixed token (--no-browser --bridge-token …)? Enter the port and token to reconnect:
Or use the box above: spp.call with ["log.tail",{"n":5}].