You don’t need to use HomeKit for this to work, but you will need https://github.com/oznu/homebridge-gsh. (Caveat: I haven’t tried this myself since I use HomeKit and Alexa devices.)
// establish new websocket connection
const socket = new WebSocket(`wss://homebridge-gsh.iot.oz.nu/socket?${querystring.stringify(qs)}`);
big YIKES from me there, especially because this is not really documented or even mentioned at all.