From 4be4aa208a4df6fc5ac87d8505b8c68c866d8713 Mon Sep 17 00:00:00 2001 From: Anton Dyudin Date: Mon, 6 Apr 2015 16:43:46 -0700 Subject: [PATCH] unsubscribe wire --- arvo/eyre.hoon | 1 - main/lib/urb.js | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arvo/eyre.hoon b/arvo/eyre.hoon index f84f21a4e4..dac440890e 100644 --- a/arvo/eyre.hoon +++ b/arvo/eyre.hoon @@ -483,7 +483,6 @@ (get-rush:(ire-ix p.tee) q.tee ((hard json) q.sih)) :: ?(%nice %mean) - ~& ack/[tee hen] ?+ tee !! ~ ?-(&2.sih %nice (nice-json), %mean (mean-json 500 p.sih)) [%of @ ^] (get-ack:(ire-ix p.tee) +.sih) diff --git a/main/lib/urb.js b/main/lib/urb.js index c56a72ee94..e73bec60e5 100644 --- a/main/lib/urb.js +++ b/main/lib/urb.js @@ -177,6 +177,8 @@ window.urb.send = function(params,cb) { params.appl = params.appl ? params.appl : this.appl params.mark = params.mark ? params.mark : "json" params.xyro = params.data ? params.data : {} + params.wire = params.wire ? params.wire : "/" + url = ["to",params.appl,params.mark] url = "/~/"+url.join("/") @@ -236,7 +238,9 @@ window.urb.unsubscribe = function(params,cb) { params.ship = params.ship ? params.ship : this.ship params.appl = params.appl ? params.appl : this.appl + params.wire = params.wire ? params.wire : params.path + if(!params.path) throw new Error("You must specify a path for urb.unsubscribe.") if(!params.appl) throw new Error("You must specify an appl for urb.unsubscribe.") if(!cb) throw new Error("You must supply a callback to urb.unsubscribe.")