git ssb

0+

cel-desktop / ssb-pkg



Tree: 8f4b43a09aab9801bf28987edd59c2e366180327

Files: 8f4b43a09aab9801bf28987edd59c2e366180327 / 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