easemob-websdk 4.4.1 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easemob-websdk",
3
- "version": "4.4.1",
3
+ "version": "4.5.0",
4
4
  "description": "Easemob chat websdk",
5
5
  "main": "Easemob-chat",
6
6
  "scripts": {
package/status.d.ts CHANGED
@@ -50,6 +50,10 @@ declare enum Code {
50
50
  OPERATION_NOT_ALLOWED = 54,
51
51
  /** A local database operation failed. */
52
52
  LOCAL_DB_OPERATION_FAILED = 55,
53
+ /** Token expired. */
54
+ WEBIM_TOKEN_EXPIRED = 56,
55
+ /** Server serving disabled. */
56
+ WEBIM_SERVER_SERVING_DISABLED = 57,
53
57
  /** The uploading of the file failed. */
54
58
  WEBIM_UPLOADFILE_ERROR = 101,
55
59
  /** The current user is not logged in when uploading the file. */
package/types/common.d.ts CHANGED
@@ -45,10 +45,10 @@ interface EventData {
45
45
  name?: string;
46
46
  /** The userId of a group event. */
47
47
  userId?: string;
48
- /** ChatRoom Attributes. */
49
- attributes?: {
50
- [key: string]: string;
51
- };
48
+ /** Custom Attributes. */
49
+ attributes?: Array<string> | { [key: string]: string };
50
+ /** The member count. For a chat room with more than 2000 members, `memberCount` will not be returned. */
51
+ memberCount?: number;
52
52
  }
53
53
 
54
54
  interface AttributeRespData {