MQTT Connection to VRM host

Try to create an html app I can use on my win11 and my android phone to access the vrm mqtt host. Having connection issues at the moment and not sure what steps to take to break thru this issue. Can anyone look at my code and see what my issues is. I use the same certfile to connect via mosquito explorer, as well as the credentials. Thanks for any assistance!!

This is the generic error I am getting back.
Connection failed: AMQJS0007E Socket error:undefined.

Code follows…------------------------------------------------------------------------------------------

MQTT Generator Control **Tried loading locally also....** console
Username: Password: Connect
Disconnected
Generator: Unknown
Start Generator Stop Generator

Note: Ensure the venus-ca.crt certificate is installed in your browser's trusted root certificates.

If anyone has a lightweight app that accesses the victron MQTT server I could build off of that ?