Index
Functions
add Chat Room Event Listener
Type parameters
_Event: ChatRoomEvent
_EventListener: ListenerFn<ADD_NEW_MEMBER, IChatRoomMembership> | ListenerFn<INVITE_NEW_MEMBER, IChatRoomInvitation> | ListenerFn<PIN_MESSAGE, IPinMessageInfo> | ListenerFn<UNPIN_MESSAGE, IUnpinEventMessageType>
Parameters
chatRoomEvent: _Event
listenerFn: _EventListener
options: IChatRoomEventListenerOptions
Returns Promise<void>
remove Chat Room Event Listener
Type parameters
_Event: ChatRoomEvent
_EventListener: ListenerFn<ADD_NEW_MEMBER, IChatRoomMembership> | ListenerFn<INVITE_NEW_MEMBER, IChatRoomInvitation> | ListenerFn<PIN_MESSAGE, IPinMessageInfo> | ListenerFn<UNPIN_MESSAGE, IUnpinEventMessageType>
Parameters
chatRoomEvent: _Event
listenerFn: _EventListener
options: IChatRoomEventListenerOptions
Returns Promise<void>
Generated using TypeDoc
Add listener for the given ChatRoomEvent, pass options based on the events
2.12.0
addChatRoomEventListener(ChatRoomEvent.INVITE_NEW_MEMBER, function onReceieveChatRoomInvitationListener(invitationEvent){ console.log(invitation); }) // for adding Invite new member event listener addChatRoomEventListener(ChatRoomEvent.INVITE_NEW_MEMBER, function onReceieveChatRoomInvitationListener(invitationEvent){ console.log(invitation); }) // for adding pin message event listener addChatRoomEventListener( ChatRoomEvent.PIN_MESSAGE, function onReceivedPinMessageListener (pinMessageInfoEvent) { console.log(pinMessageInfoEvent)}, { roomId: "695ea6f4-fe7b-47cc-817c-2d73fdba264a" } );