Skip to content

Instantly share code, notes, and snippets.

@ajb413
Last active March 22, 2018 21:45
Show Gist options
  • Save ajb413/0d1a95ef5c09648335d9d580da29931a to your computer and use it in GitHub Desktop.
Save ajb413/0d1a95ef5c09648335d9d580da29931a to your computer and use it in GitHub Desktop.
Import ChatEngine Example snippet
<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