Merge pull request #7422 from aylarov/master

Big Instant Messaging Upgrade
This commit is contained in:
Horiuchi_H
2016-01-04 16:07:33 +09:00
2 changed files with 888 additions and 58 deletions
+9 -1
View File
@@ -1,7 +1,8 @@
/// <reference path="./voximplant-websdk.d.ts"/>
var vox: VoxImplant.Client = VoxImplant.getInstance(),
call: VoxImplant.Call;
call: VoxImplant.Call,
room: string;
vox.init({
micRequired: true
@@ -83,3 +84,10 @@ vox.addEventListener(VoxImplant.IMEvents.RosterReceived, function(event: VoxImpl
console.log("Roster received: " + roster);
});
vox.addEventListener(VoxImplant.IMEvents.ChatRoomBanList, function(event: VoxImplant.IMEvents.ChatRoomBanList) {
console.log("Banned participants: " + event.participants + " in room " + event.room);
});
room = vox.createChatRoom();
vox.inviteToChatRoom(room, "user1", "Come and join us");
File diff suppressed because it is too large Load Diff