node data
parent
7bf63c2314
commit
b60c275109
10
public/index.html → public/<script src="https:/cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.0/socket.io.js"></script> <script> const socket = io(); / Listen for custom events from the server socket.on('node-data', function(data) { console.log(data); / Log the received data to the browser's console }); </script>index.html
10
public/index.html → public/<script src="https:/cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.0/socket.io.js"></script> <script> const socket = io(); / Listen for custom events from the server socket.on('node-data', function(data) { console.log(data); / Log the received data to the browser's console }); </script>index.html
Loading…
Reference in New Issue