When I join a static room with 2 clients (A, B) and A succesfully sends a chat message the onChatReceived listener is not called on B. The chat is sent since the A's onSendChatDone result is 0. What could be the problem here?
Update: Joining and subscribing to the room did not fix the issue.
client.joinRoom(6326129);
client.setResponseListener(AppWarp.Events.onJoinRoomDone, function (response) {
var resultCode = response.getResult();
if (resultCode === ResultCodes.SUCCESS) {
console.info('Joined room', response.getName());
client.subscribeRoom(response.getRoomId());
} else {
throw new Error('Could not join room.');
}
});
client.setResponseListener(AppWarp.Events.onSubscribeRoomDone, function (response) {
var resultCode = response.getResult();
if (resultCode === ResultCodes.SUCCESS) {
console.info('Subscribed to room', response.getName());
} else {
throw new Error('Could not subscribe to room ' + response.getName());
}
});
Output in console on all clients:
Joined room ABCD
Subscribed to room ABCD
Still clients do not receive the message.
client.setResponseListener(AppWarp.Events.onChatReceived, function (response) {
console.info(response.getChat());
});