How to connect Volumio via websocket

What would be the easiest way to establish websocket connection to Volumio?

There is a shutdown command in Volumio’s websocket API, unfortunately it’s not available via Rest API. I’d like have automated shutdown from Home Assistant, but I have no idea how to establish the websocket connection from I guess that would be possible with Node-Red, but I think running Node-Red for one command is slightly overkill.

All suggestions are welcome.

Older thread, but I’m interested in doing this as well. Any recommendations welcomed.

Did anyone have any joy doing this as I to am interested.