mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-07 07:30:23 +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))
|
(get-rush:(ire-ix p.tee) q.tee ((hard json) q.sih))
|
||||||
::
|
::
|
||||||
?(%nice %mean)
|
?(%nice %mean)
|
||||||
~& ack/[tee hen]
|
|
||||||
?+ tee !!
|
?+ tee !!
|
||||||
~ ?-(&2.sih %nice (nice-json), %mean (mean-json 500 p.sih))
|
~ ?-(&2.sih %nice (nice-json), %mean (mean-json 500 p.sih))
|
||||||
[%of @ ^] (get-ack:(ire-ix p.tee) +.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.appl = params.appl ? params.appl : this.appl
|
||||||
params.mark = params.mark ? params.mark : "json"
|
params.mark = params.mark ? params.mark : "json"
|
||||||
params.xyro = params.data ? params.data : {}
|
params.xyro = params.data ? params.data : {}
|
||||||
|
params.wire = params.wire ? params.wire : "/"
|
||||||
|
|
||||||
|
|
||||||
url = ["to",params.appl,params.mark]
|
url = ["to",params.appl,params.mark]
|
||||||
url = "/~/"+url.join("/")
|
url = "/~/"+url.join("/")
|
||||||
@ -236,6 +238,8 @@ window.urb.unsubscribe = function(params,cb) {
|
|||||||
|
|
||||||
params.ship = params.ship ? params.ship : this.ship
|
params.ship = params.ship ? params.ship : this.ship
|
||||||
params.appl = params.appl ? params.appl : this.appl
|
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.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(!params.appl) throw new Error("You must specify an appl for urb.unsubscribe.")
|
||||||
|
Loading…
Reference in New Issue
Block a user