Here is snippet that may help. You could use port 80 if wished.
var server = require('ws').createServer(servePage);
server.listen(8000); server.on("websocket", function(ws) { ws.on('message', function(evt){ // handle the message }); });
```
@Ollie started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Here is snippet that may help. You could use port 80 if wished.
var server = require('ws').createServer(servePage);
```