git ssb

0+

cel-desktop / ssb-pkg



Tree: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1

Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / test / test-79-npm / engine.io / engine.io.js

447 bytesRaw
1'use strict';
2
3var http = require('http');
4var engine = require('engine.io');
5engine.listen(3000);
6
7setTimeout(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