node data

master
louisa 2 years ago
parent 7bf63c2314
commit b60c275109

@ -9,6 +9,16 @@
<link href="style.css" rel="stylesheet"> <link href="style.css" rel="stylesheet">
<!-- <script src="js/p5.js"></script> <!-- <script src="js/p5.js"></script>
<script src="js/p5.geolocation.js"></script> --> <script src="js/p5.geolocation.js"></script> -->
<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>
<script src='socket.io/socket.io.js'></script> <script src='socket.io/socket.io.js'></script>
<meta property="og:title" content="868 MHz" /> <meta property="og:title" content="868 MHz" />
Loading…
Cancel
Save