Add isConnected()
This commit is contained in:
@@ -554,6 +554,16 @@ Cosmopolite.prototype.currentProfile = function() {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @see https://www.cosmopolite.org/reference#isConnected
|
||||
* @return {boolean}
|
||||
* @const
|
||||
*/
|
||||
Cosmopolite.prototype.isConnected = function() {
|
||||
return (this.channelState_ == Cosmopolite.ChannelState_.OPEN);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @see https://www.cosmopolite.org/reference#pin_method
|
||||
* @param {Cosmopolite.typeSubjectLoose} subject
|
||||
|
||||
Reference in New Issue
Block a user