webinar/candy-plugins/chatrecall/README.md

693 B

Chat recall plugin

This plugin will allow the user to navigate through historical messages they've typed using the up and down keys

Usage

Include the JavaScript file:

<script type="text/javascript" src="path_to_plugins/chatrecall/candy.js"></script>

Call its init() method after Candy has been initialized:

Candy.init('/http-bind/');

CandyShop.ChatRecall.init();

Candy.Core.connect();

Configuration options

messagesToKeep - Integer - The number of messages to store in history. Defaults to 10

Example configurations

// Store 25 messages for the user to scroll through
CandyShop.ChatRecall.init({
    messagesToKeep: 25
});