Btw, I tried also to use require( 'http' ) and it didn't work as well.
require( 'http' )
The funny thing is, that WebSocket works like charm:
WebSocket
var WS = require( "ws" ); self.ws = new WS( self.serverHost, { port:8822 } );
@Injecteer 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.
Btw, I tried also to use
require( 'http' )
and it didn't work as well.The funny thing is, that
WebSocket
works like charm: