Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

expose purging and clean all proxies

  • Loading branch information...
commit ef2684e73fc2be6a1a92eabe28723225b4d252d4 1 parent 878d91c
Raynos (Jake Verbaten) authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 browser.js
8 browser.js
View
@@ -125,7 +125,9 @@ function reconnecter(uri, options) {
function onend() {
if (!mdm.destroyed) {
// it ended cleanly so end the proxy
- proxyMdmRead.emit("end")
+ proxyMdmRead.end()
+ proxyMdmWrite.end()
+ proxy.end()
} else {
// ended means there is a temporary disconnect from the server
proxy.emit("ended")
@@ -150,7 +152,9 @@ function reconnecter(uri, options) {
var index = metaStreams.push(details)
- proxyMdmWrite.once("end", removeFromCache)
+ proxyMdmWrite.on("end", removeFromCache)
+
+ proxy.purge = removeFromCache
return proxy
Please sign in to comment.
Something went wrong with that request. Please try again.