mirror of
https://github.com/urbit/shrub.git
synced 2024-12-13 16:03:36 +03:00
unsubscribe wire
This commit is contained in:
parent
8889e8bcd7
commit
4be4aa208a
@ -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)
|
||||
|
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user