Last active
March 22, 2018 21:45
-
-
Save ajb413/0d1a95ef5c09648335d9d580da29931a to your computer and use it in GitHub Desktop.
Import ChatEngine Example snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.jsdelivr.net/npm/chat-engine@0.9.5/dist/chat-engine.min.js"></script> | |
<script> | |
// WARNING! - Get PubNub API keys and run the ChatEngine setup: | |
// https://www.pubnub.com/docs/tutorials/chatengine#step-one-pubnub-keys | |
// Make sure to import ChatEngine first! | |
const ChatEngine = ChatEngineCore.create({ | |
publishKey: '__your_PubNub_Publish_key__', | |
subscribeKey: '__your_PubNub_Subscribe_key__' | |
}, { | |
globalChannel: 'chat-engine-demo' | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment