Function addChatRoomEventListener
- add
Chat Room Event Listener<_Event, _EventListener>(chatRoomEvent, listenerFn, options): Promise<void> Type Parameters
_Event extends ChatRoomEvent
_EventListener extends ListenerFn<INVITE_NEW_MEMBER, IChatRoomInvitation> | ListenerFn<ADD_NEW_MEMBER, IChatRoomMembership> | ListenerFn<PIN_MESSAGE, IPinMessageInfo> | ListenerFn<UNPIN_MESSAGE, IUnpinEventMessageType> | ListenerFn<CHATROOM_UPDATED, IChatRoomPayload>
Parameters
chatRoomEvent: _Event
listenerFn: _EventListener
options: IChatRoomEventListenerOptions
Returns Promise<void>
Generated using TypeDoc
Description
Add listener for the given ChatRoomEvent, pass options based on the events
Since
2.12.0
Example