Bare is a runtime of its own and is not sandboxed like a normal JavaScript environment.
It can access TCP and setup sockets/connections and do all kinds of stuff.
Holesail Go was built way before bare-kit and uses custom stuff to set itself up and work.
But if you are taking Guy's bounty, Bare-kit is the way to go.