1.0.9 • Published 5 years ago
realtime-chat-sdk v1.0.9
Real-time chat-sdk
Is currently under development
JavaScript SDK for Messaging APIs. You can connect Chat API(coming soon) to any of your projects through this SDK.
npm install -S realtime-chat-sdk
import * as SDK from "realtime-chat-sdk"
const chat = new SDK().Connect("domain-where-the-chat-is-located");
chat.checkConnection();
// returns {
// success: true,
// domain: "localhost:5000"
// }
Public methods:
chatSignIn
(
path
: String,method
: (type: String, default: "GET"),body
: Object,not_empty
: (type: Boolean, desc: Validate expected response))chatSignUp
(
path
: String,method
: (type: String, default: "GET"),body
: Object,not_empty
: (type: Boolean, desc: Validate expected response))