/** @module leancloud-realtime */
/** core + plugins */
import { Realtime } from './core';
import { IMPlugin, defineConversationProperty } from './plugin-im';
import MessageParser from './message-parser';
import * as CoreEvent from './events/core';
import * as IMEvent from './events/im';
Realtime.defineConversationProperty = defineConversationProperty;
Realtime.__preRegisteredPlugins = [IMPlugin];
const Event = {
...CoreEvent,
...IMEvent,
};
export {
/**
* SDK 可能会派发的事件枚举
* @name Event
* @enum {String}
* @since 4.0.0
*/
Event,
};
export {
/**
* 错误码,详见 [即时通讯云端错误码说明]{@link https://leancloud.cn/docs/realtime-faq.html#hash-291949329}
* @name ErrorCode
* @enum {Number}
* @since 3.3.0
*/
ErrorCode,
} from './error';
export * from './core';
export * from './plugin-im';
export {
/**
* @see MessageParser
* @since 5.0.0
*/
MessageParser,
};
export {
/**
* @see ConversationQuery
*/
default as ConversationQuery,
} from './conversation-query';