chat-engine-online-user-search

0.0.11 • Public • Published

Online User Search Plugin for ChatEngine

Adds the ability to search for currently online users on a ChatEngine Chat

Quick Start

  1. 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', () = { ... });
  1. Attach this plugin to the channel you want, in this case global
ChatEngine.global.plugin(ChatEngineCore.plugin['chat-engine-online-user-search']());
  1. Query the channel for a search term
// returns all users with uuid's containing 'foo'
ChatEngine.global.onlineUserSearch.search('foo');

Support

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

/chat-engine-online-user-search/

    Package Sidebar

    Install

    npm i chat-engine-online-user-search

    Weekly Downloads

    6

    Version

    0.0.11

    License

    none

    Unpacked Size

    618 kB

    Total Files

    12

    Last publish

    Collaborators

    • client-engineering-bot
    • stephenlb
    • pubnub-admin
    • ianjennings
    • raimondi1337
    • ajb413
    • madisonsmith
    • crgbaumgart