stream-url
Advanced tools
Comparing version 0.0.1 to 0.0.3
{ | ||
"name": "stream-url", | ||
"version": "0.0.1", | ||
"version": "0.0.3", | ||
"homepage": "http://github.com/gritzko/stream-url", | ||
@@ -25,3 +25,2 @@ "repository": { | ||
"dependencies": { | ||
"swarm-bat": "^0.4.0" | ||
}, | ||
@@ -28,0 +27,0 @@ "devDependencies": { |
Stream URLs | ||
=========== | ||
unite two powerful universal concepts: streams and URLs | ||
The mission of this package is to unite two powerful universal concepts: | ||
streams and URLs. | ||
`connect` | ||
`listen` |
@@ -35,15 +35,3 @@ "use strict"; | ||
// just as an example, register adaptors for loopback streams | ||
register('loopback:', loopback_listen, loopback_connect); | ||
function loopback_listen (stream_url, callback) { | ||
return new bat.BatServer(stream_url.host, {}, callback); | ||
} | ||
function loopback_connect (stream_url, callback) { | ||
var stream = new bat.BatStream(); | ||
stream.connect(stream_url.host, {}, callback); | ||
return stream; | ||
} | ||
module.exports = { | ||
@@ -50,0 +38,0 @@ listen: listen, |
"use strict"; | ||
var su = require('..'); | ||
var bat = require('swarm-bat'); // register loopback: | ||
var tape = require('tape'); | ||
@@ -4,0 +6,0 @@ if (typeof(window)==='object') { |
0
7
3669
58
- Removedswarm-bat@^0.4.0
- Removedstream-url@0.0.5(transitive)
- Removedswarm-bat@0.4.3(transitive)