chat-engine-gravatar

Update all Users's state and add a gravatar property based on user.state.email. Result assigned to user.state.gravatar.

require('chat-engine-gravatar')(configopt)

Source:
Example
chat = new ChatEngine.Chat(new Date().getTime());
user = new OCF.User('ian', {email: 'ian@pubnub.com'});
user.plugin(gravatar());
console.log(user.state.gravatar;
Parameters:
Name Type Attributes Default Description
config Object <optional>
{}

The plugin config object

Properties
Name Type Attributes Default Description
prop String <optional>
"email"

The User#state property to use as gravatar.

Source:

Members

(inner) state.gravatar

Augments:
Source: