Methods
ChatEngineCore(pnConfig, ceConfig) → {ChatEngine}
- Source:
Global object used to create an instance of ChatEngine.
Example
ChatEngine = ChatEngineCore.create({
publishKey: 'YOUR_PUB_KEY',
subscribeKey: 'YOUR_SUB_KEY'
});
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pnConfig |
Object | ChatEngine is based off PubNub. Supply your PubNub configuration parameters here. See the getting started tutorial and the PubNub docs. |
||||||||||||||||||||||||||||||||||||||||
ceConfig |
Object | A list of ChatEngine specific configuration options. Properties
|
Returns:
Returns an instance of ChatEngine
- Type
- ChatEngine
Events
Chat#$.error.auth property {String} ceError The specific error thrown by ChatEngine
There was a problem searching the chat.