removeAllListeners added to services transport

This commit is contained in:
nklhrstv 2022-05-17 11:57:27 +03:00
parent 6ecd46c108
commit 7b372b88cc
2 changed files with 6 additions and 0 deletions

View file

@ -106,6 +106,9 @@ function ChromecastTransport() {
this.off = function(name, listener) {
events.off(name, listener);
};
this.removeAllListeners = function() {
events.removeAllListeners();
};
this.getCastState = function() {
return cast.framework.CastContext.getInstance().getCastState();
};

View file

@ -31,6 +31,9 @@ function CoreTransport() {
this.off = function(name, listener) {
events.off(name, listener);
};
this.removeAllListeners = function() {
events.removeAllListeners();
};
this.getState = function(field) {
return get_state(field);
};