Sha256: 1d65be5db46d8ceceff1effccbb610d6aa50c517a69b66c7e0d1d7cb72805ccf
Contents?: true
Size: 545 Bytes
Versions: 3
Compression:
Stored size: 545 Bytes
Contents
var http = require('http'); $(function () { var opts = { host : window.location.hostname, port : window.location.port, path : '/count' }; http.get(opts, function (res) { res.on('data', function (buf) { $('<div>') .text(buf) .appendTo($('#count')) ; }); res.on('end', function () { $('<div>') .text('__END__') .appendTo($('#count')) ; }); }); });
Version data entries
3 entries across 3 versions & 2 rubygems