git ssb

1+

dinoworm ๐Ÿ› / vas



Tree: 7e467f6efa8f6320f4c92bbfbe6e905689e0b8eb

Files: 7e467f6efa8f6320f4c92bbfbe6e905689e0b8eb / connect.js

471 bytesRaw
1var pull = require('pull-stream')
2var Url = require('url')
3var defined = require('defined')
4
5var Client = require('./client')
6var HttpClient = require('./http/client')
7
8module.exports = connect
9
10function connect (services, config, options) {
11 options = defined(options, {})
12
13 var url = defined(options.url, '/')
14 var onConnect = options.onConnect
15
16 var client = Client(services, config, options)
17
18 var httpClient = HttpClient(client, options)
19
20 return httpClient
21}
22

Built with git-ssb-web