Add listener for the given ChatRoomEvent, pass options based on the events
0.1.0
addChatRoomEventListener(ChatRoomEvent.INVITE_NEW_MEMBER, function onReceieveChatRoomInvitationListener(invitationEvent){ console.log(invitation);})// for adding Invite new member event listeneraddChatRoomEventListener(ChatRoomEvent.INVITE_NEW_MEMBER, function onReceieveChatRoomInvitationListener(invitationEvent){ console.log(invitation);})// for adding pin message event listeneraddChatRoomEventListener( ChatRoomEvent.PIN_MESSAGE, function onReceivedPinMessageListener (pinMessageInfoEvent) { console.log(pinMessageInfoEvent)}, { roomId: "695ea6f4-fe7b-47cc-817c-2d73fdba264a" }); Copy
addChatRoomEventListener(ChatRoomEvent.INVITE_NEW_MEMBER, function onReceieveChatRoomInvitationListener(invitationEvent){ console.log(invitation);})// for adding Invite new member event listeneraddChatRoomEventListener(ChatRoomEvent.INVITE_NEW_MEMBER, function onReceieveChatRoomInvitationListener(invitationEvent){ console.log(invitation);})// for adding pin message event listeneraddChatRoomEventListener( ChatRoomEvent.PIN_MESSAGE, function onReceivedPinMessageListener (pinMessageInfoEvent) { console.log(pinMessageInfoEvent)}, { roomId: "695ea6f4-fe7b-47cc-817c-2d73fdba264a" });
Generated using TypeDoc
Description
Add listener for the given ChatRoomEvent, pass options based on the events
Since
0.1.0
Example