laravel-echo
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -301,2 +301,8 @@ var asyncGenerator = function () { | ||
}, { | ||
key: 'stopListening', | ||
value: function stopListening(event) { | ||
this.subscription.unbind(this.eventFormatter.format(event)); | ||
return this; | ||
} | ||
}, { | ||
key: 'on', | ||
@@ -303,0 +309,0 @@ value: function on(event, callback) { |
{ | ||
"name": "laravel-echo", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Laravel Echo library for beautiful Pusher and Socket.IO integration", | ||
@@ -5,0 +5,0 @@ "main": "dist/echo.js", |
@@ -95,2 +95,14 @@ import { EventFormatter } from './../util'; | ||
/** | ||
* Stop listening for an event on the channel instance. | ||
* | ||
* @param {string} event | ||
* @return {PusherChannel} | ||
*/ | ||
stopListening(event: string): PusherChannel { | ||
this.subscription.unbind(this.eventFormatter.format(event)); | ||
return this; | ||
} | ||
/** | ||
* Bind a channel to an event. | ||
@@ -97,0 +109,0 @@ * |
154596
3914