git ssb

0+

cel-desktop / ssb-pkg



Tree: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44

Files: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44 / 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