git ssb

0+

cel-desktop / ssb-pkg



Tree: 1eb144e388da5f1a3466703f56ac4ab591d700fc

Files: 1eb144e388da5f1a3466703f56ac4ab591d700fc / 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