Live Refresh with Sockets Error

I keep getting this error whenever I try a use live refresh with sockets and the data does not refresh. What am I doing wrong?

I am using Node.js on a regular web app. I am using the latest version of Wappler and all my extensions and node packages are up to date.

Hi,
Make sure this library exist inside <head> tag:
<script src="/dmxAppConnect/dmxSockets/dmxSockets.js" defer></script>

1 Like

Yes it is in there on my main

Screenshot 2023-10-16 at 9.35.53 PM

You can try load it from the cdn:
<script src="https://cdn.socket.io/4.6.0/socket.io.min.js" integrity="sha384-c79GN5VsunZvi+Q/WObgk2in0CbZsHnjEqvFxC5DxHn9lTfNce2WW6h2pH6u/kF+" crossorigin="anonymous"></script>

User rthat instead of the /socket.io/socket.io.js line

1 Like

Now please check if that file (/dmxAppConnect/dmxSockets/dmxSockets.js) already exist in that path in your public folder.
Too you can remove the script and save the file, Wappler will create a new script tag and will add the file in case is missing.

1 Like