-
Notifications
You must be signed in to change notification settings - Fork 216
Expand file tree
/
Copy pathQBconfig.js
More file actions
50 lines (48 loc) · 1.04 KB
/
QBconfig.js
File metadata and controls
50 lines (48 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
var QBconfig = {
credentials: {
appId: 'YOUR_APP_ID',
authKey: 'Ad6zC2V5W7',
authSecret: 'DcFckTJd-hk',
accountKey: 'KsNV-F11T6Z3g'
},
appConfig: {
chatProtocol: {
active: 2
},
endpoints: {
api: 'api.quickblox.com',
chat: 'chat.quickblox.com'
},
streamManagement: {
enable: true
},
debug: {
mode: 1,
file: null
}
}
};
var appConfig = {
dilogsPerRequers: 15,
messagesPerRequest: 50,
usersPerRequest: 15,
typingTimeout: 3 // 3 seconds
};
var CONSTANTS = {
DIALOG_TYPES: {
CHAT: 3,
GROUPCHAT: 2,
PUBLICCHAT: 1
},
ATTACHMENT: {
TYPE: 'image',
BODY: '[attachment]',
MAXSIZE: 100000000, // set 100 megabytes,
MAXSIZEMESSAGE: 'The uploaded file exceeds maximum file size (100MB).'
},
NOTIFICATION_TYPES: {
NEW_DIALOG: '1',
UPDATE_DIALOG: '2',
LEAVE_DIALOG: '3'
}
};