Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / test / test-79-npm / engine.io / engine.io.js
447 bytesRaw
1 | ; |
2 | |
3 | var http = require('http'); |
4 | var engine = require('engine.io'); |
5 | engine.listen(3000); |
6 | |
7 | setTimeout(function () { |
8 | http.get('http://127.0.0.1:3000/socket.io/socket.io.js', function (res) { |
9 | var chunks = ''; |
10 | res.on('data', function (chunk) { |
11 | chunks += chunk.toString(); |
12 | }).on('end', function () { |
13 | if (chunks === 'Not Implemented') { |
14 | console.log('ok'); |
15 | } |
16 | process.exit(); |
17 | }); |
18 | }); |
19 | }, 100); |
20 |
Built with git-ssb-web