I haven't tried this but I suspect this will work.
I believe this was originally created so you could interact with Node while a web server was running, so you could do live inspection of the contents.
You would need a utility to read/write to the socket, such as socat or nc
You could also add this to a shell script:
#! /bin/sh
node app.js &
nc -U /tmp/repl/realtime-101.sock
For more info: https://github.com/dshaw/replify