git ssb

0+

cel-desktop / ssb-pkg



Tree: 8f4b43a09aab9801bf28987edd59c2e366180327

Files: 8f4b43a09aab9801bf28987edd59c2e366180327 / test / test-79-npm / socket.io / socket.io@1.6.0.js

488 bytesRaw
1'use strict';
2
3var http = require('http');
4var io = require('socket.io')();
5io.on('connection', function () {});
6io.listen(3000);
7
8setTimeout(function () {
9 http.get('http://127.0.0.1:3000/socket.io/socket.io.js', function (res) {
10 var chunks = '';
11 res.on('data', function (chunk) {
12 chunks += chunk.toString();
13 }).on('end', function () {
14 if (chunks.indexOf('__webpack_require__') >= 0) {
15 console.log('ok');
16 }
17 io.close();
18 });
19 });
20}, 100);
21

Built with git-ssb-web