jbs-live-chat
v0.0.1
Published
A simple to setup Live Chat System.
Downloads
4
Readme
JBS-Live-Chat
THIS PACKAGE IS NOT READY FOR USE.
Description
The JumpButton Studio Live Chat module was design to create an Easy-to-use Live chat ticketing system with your Node.JS project.
Updates
Version 0.0.1
- The basic version has been released.
- Database tables designed.
- First-Time Setup functions working.
How To Use
The first time using the plugin you need to just have an empty/pre-existing database available. Right now the only supported database is MySQL. This will change in future updates.
Basic Usage
let express = require("express");
let app = new express();
let liveChat = require("./live-chat-module/live-chat.js")(app,{
dbuser: "jbs",
dbpass: "chat",
dbhost: "jumpbuttonnorth.asuscomm.com",
dbname: "jbs_live_chat"
},chatReadyCallback);
// This is ONLY call on first time-setup.
function chatReadyCallback(){
// Add Category AKA Chat Room
liveChat.addCategory("Support Department",function(err,category_id){
if(err){
console.error("Server",err.message);
}else{
liveChat.addStaff(category_id,"Matthew A","[email protected]");
}
});
}