-
• #2
createServer
itself returns anhttpSrv
class, which has a close method: http://www.espruino.com/Reference#httpSrvSo:
var server = require("http").createServer(...); ... server.close();
createServer
itself returns an httpSrv
class, which has a close method: http://www.espruino.com/Reference#httpSrv
So:
var server = require("http").createServer(...);
...
server.close();
Hi all, once I created a web server using
Which function should I call to close it? Thanks.