From 376a3ab289d5401b4ec94c0cbbe3c4b7cf7d8142 Mon Sep 17 00:00:00 2001 From: haad Date: Tue, 8 Mar 2016 18:33:43 +0100 Subject: [PATCH] Change channel.leave to channel.close --- src/OrbitClient.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/OrbitClient.js b/src/OrbitClient.js index 59072cb..b5edeee 100644 --- a/src/OrbitClient.js +++ b/src/OrbitClient.js @@ -40,9 +40,7 @@ class OrbitClient { const items = this._iterator(channel, password, { key: key }).collect(); return items[0] ? items[0].value : null; }, - subscribe: () => { - }, - leave: () => this._pubsub.unsubscribe(channel) + close: () => this._pubsub.unsubscribe(channel) } }