🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

chat-engine-markdown

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chat-engine-markdown

Adds the ability to render Markdown in a ChatEngine Chat

0.0.9
latest
77

Supply Chain Security

100

Vulnerability

83

Quality

83

Maintenance

80

License

Version published
Maintainers
4
Created

Markdown Plugin for ChatEngine

Adds the ability to render Markdown in a ChatEngine Chat

Quick Start

  • Have a ChatEngine server running already, instantiate a client and connect it
const ChatEngine = ChatEngineCore.create({
    publishKey: 'pub-key-here',
    subscribeKey: 'sub-key-here'
});

ChatEngine.connect('Username');
ChatEngine.on('$ready', () = { ... });
  • Attach this plugin to the channel you want, in this case global
ChatEngine.global.plugin(ChatEngineCore.plugin['chat-engine-markdown']());
  • Listen for the message event
ChatEngine.global.on('message', (payload) => {
    console.log(payload.data.text);
});
  • Send a message containing Markdown
ChatEngine.global.emit('message', {
    text: 'This is some *markdown* **for sure**.'
});
// This is some <em>markdown</em> <strong>for sure</strong>.

Support

  • If you need help, have a general question a feature request or to file a bug, contact support@pubnub.com

FAQs

Package last updated on 06 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts