This repository is a part of the ChatEngine Framework. For more information on building chat applications with PubNub, see our Chat Resource Center.
Adds the ability to search for currently online users on a ChatEngine Chat
- 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-online-user-search']());
- Query the channel for a search term
// returns all users with uuid's containing 'foo'
ChatEngine.global.onlineUserSearch.search('foo');
- If you need help, have a general question, have a feature request or to file a bug, contact support@pubnub.com.