3 ms·
The idea with node is that you dont normally need multiple threads or processes because you have nonblocking io. http = require 'http' server = http.cr
by ilaksh 14y ago
The idea with node is that you dont normally need multiple threads or processes because you have nonblocking io.
http = require 'http'
server = http.createServer 'localhost', (req, res) ->
res.writeHead 200
res.end 'ok'
app = server.listen 3000
- ilaksh 14y agoI made a mistake, did not mean to include 'localhost' in there.