Access Publish and Subscribe API

ChatEngine SDKs are built on top of existing publish & subscribe SDKs and provide full access to the original method by referencing the ChatEngine.pubnub object.

For instance, the pubnub instance can be used to call batch history on multiple Chat channels instead of calling Search on individual '''Chat''' rooms.

PubNub = ChatEngine.pubnub;
PubNub.fetchMessages(
    {
        channels: ['chat-engine#chat#public.#ch1', 'chat-engine#chat#public.#ch2', 'chat-engine#chat#public.#ch3'],
        start: "123",
        end: "1234",
        count: 30
    },
    (status, response) => {
        // handle response
    }
);