An example of Socket.io with Node.Js on the beagle bone or Raspberry
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
340 B

const express = require("express");
const app = express();
const http = require("http");
const server = http.createServer(app);
app.get('/', (req, res)=>{
res.sendFile(__dirname + '/index-static.html');
//res.send('<h1> Hello World</h1>');
});
server.listen(4040, ()=>{
console.log('listen on http://beaglebone-black.local:4040');
});