# private message
Events such as duplicate logins and writing restrictions are delivered directly to the user. The event is not forwarded to other users.
# event on duplicate login
This event is delivered to the existing user when login is duplicated due to duplicate clientkey.
public void onPersonalDuplicateUser(JSONObject data) { // Duplicate connection event
Log.d("duplicate", data);
}
1
2
3
2
3
Push result value
Value Identifier Description clientKey String Unique key for connection terminal setting messageDt String Sent Date
# code to apply to the project
public void onPersonalDuplicateUser(JSONObject data) { // Duplicate connection event
Message msg = new Message(data);
msg.setType("duplicate");
messageExposure(msg, false);
}
1
2
3
4
5
6
2
3
4
5
6
# Writing limit event
public void onPersonalMuteUser(JSONObject data) { // Personal mute event
Log.d("Mute", data);
}
1
2
3
2
3
Push result value
Value Identifier Description clientKey String Unique key for connection terminal setting nickName String Nickname of the user entering the chatroom messageDt String Sent Date
# code to apply to the project
public void onPersonalMuteUser(JSONObject data) { // Personal mute event
Log.d("Unmute", data);
}
1
2
3
2
3
# Writing restriction release event
public void onPersonalUnmuteUser(JSONObject data) { // Personal unmute event
Message msg = new Message(data);
msg.setType("perUnMute");
messageExposure(msg, false);
}
1
2
3
4
5
6
2
3
4
5
6
Push result value
Value Identifier Description clientKey String Unique key for connection terminal setting nickName String Nickname of the user entering the chatroom messageDt String Sent Date
# code to apply to the project
public void onPersonalUnmuteUser(JSONObject data) { // Personal unmute event
Message msg = new Message(data);
msg.setType("perUnMute");
messageExposure(msg, false);
}
1
2
3
4
5
6
2
3
4
5
6
# full code
message event full code
channel.setHandler(new MessageHandler() {
public void onPersonalMuteUser(JSONObject data) { // Personal mute event
Message msg = new Message(data);
msg.setType("preMute");
messageExposure(msg, false);
}
public void onPersonalUnmuteUser(JSONObject data) { // Personal unmute event
Message msg = new Message(data);
msg.setType("perUnMute");
messageExposure(msg, false);
}
public void onPersonalDuplicateUser(JSONObject data) { // Duplicate connection event
Message msg = new Message(data);
msg.setType("duplicate");
messageExposure(msg, false);
}
})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23