chat-engine
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -5,3 +5,3 @@ { | ||
"name": "chat-engine", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Open Chat Framework", | ||
@@ -8,0 +8,0 @@ "main": "src/index.js", |
@@ -219,3 +219,3 @@ "use strict"; | ||
* A list of users in this {{#crossLink "Chat"}}{{/crossLink}}. Automatically kept in sync, | ||
* Use ```Chat.on('$ocf.join')``` and related events to get notified when this changes | ||
* Use ```Chat.on('$.join')``` and related events to get notified when this changes | ||
* | ||
@@ -256,3 +256,3 @@ * @property users | ||
if(statusEvent.affectedChannels.indexOf(this.channel) > -1) { | ||
this.trigger('$ocf.ready'); | ||
this.trigger('$.ready'); | ||
} | ||
@@ -306,6 +306,6 @@ | ||
* | ||
* @event $ocf.join | ||
* @event $.join | ||
* @param {Object} payload.user The {{#crossLink "User"}}{{/crossLink}} that came online | ||
*/ | ||
this.trigger('$ocf.join', { | ||
this.trigger('$.join', { | ||
user: user | ||
@@ -455,6 +455,6 @@ }); | ||
* | ||
* @event $ocf.online | ||
* @event $.online | ||
* @param {Object} payload.user The {{#crossLink "User"}}{{/crossLink}} that came online | ||
*/ | ||
this.trigger('$ocf.online', { | ||
this.trigger('$.online', { | ||
user: ChatEngine.users[uuid] | ||
@@ -498,7 +498,7 @@ }); | ||
* | ||
* @event $ocf.state | ||
* @event $.state | ||
* @param {Object} payload.user The {{#crossLink "User"}}{{/crossLink}} that changed state | ||
* @param {Object} payload.state The new user state for this ```Chat``` | ||
*/ | ||
this.trigger('$ocf.state', { | ||
this.trigger('$.state', { | ||
user: this.users[uuid], | ||
@@ -535,4 +535,4 @@ state: this.users[uuid].state(this) | ||
// if a user leaves, trigger the event | ||
this.trigger('$ocf.leave', this.users[uuid]); | ||
this.trigger('$ocf.offline', this.users[uuid]); | ||
this.trigger('$.leave', this.users[uuid]); | ||
this.trigger('$.offline', this.users[uuid]); | ||
@@ -569,6 +569,6 @@ // remove the user from the local list of users | ||
* | ||
* @event $ocf.disconnect | ||
* @event $.disconnect | ||
* @param {Object} User The {{#crossLink "User"}}{{/crossLink}} that disconnected | ||
*/ | ||
this.trigger('$ocf.disconnect', this.users[uuid]); | ||
this.trigger('$.disconnect', this.users[uuid]); | ||
@@ -578,6 +578,6 @@ /** | ||
* | ||
* @event $ocf.offline | ||
* @event $.offline | ||
* @param {Object} User The {{#crossLink "User"}}{{/crossLink}} that has gone offline | ||
*/ | ||
this.trigger('$ocf.offline', this.users[uuid]); | ||
this.trigger('$.offline', this.users[uuid]); | ||
@@ -634,3 +634,3 @@ } | ||
* Set the state for {{#crossLink "Me"}}{{/crossLink}} within this {{#crossLink "User"}}{{/crossLink}}. | ||
* Broadcasts the ```$ocf.state``` event on other clients | ||
* Broadcasts the ```$.state``` event on other clients | ||
* | ||
@@ -637,0 +637,0 @@ * @method setState |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1816577