@arkadiuminc/sdk 2.41.1 → 2.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -47,6 +47,8 @@ export declare type GetChatMessagesParams = {
|
|
|
47
47
|
export declare type ChatPresencesListener = (presence: ChatPresence[]) => void;
|
|
48
48
|
export declare type ChatMessageListener = (message: ChatMessage) => void;
|
|
49
49
|
export declare type ChatInviteListener = (invite: Notification) => void;
|
|
50
|
+
export declare type ChatJoinerListener = (joiner: ChatPresence) => void;
|
|
51
|
+
export declare type ChatLeaverListener = (leaver: ChatPresence) => void;
|
|
50
52
|
export declare class ChatArena extends NakamaService {
|
|
51
53
|
private _notificationsService;
|
|
52
54
|
private _friendsService;
|
|
@@ -58,6 +60,8 @@ export declare class ChatArena extends NakamaService {
|
|
|
58
60
|
private _chatPresencesListener?;
|
|
59
61
|
private _chatMessageListener?;
|
|
60
62
|
private _chatInviteListener?;
|
|
63
|
+
private _chatJoinerListener?;
|
|
64
|
+
private _chatLeaverListener?;
|
|
61
65
|
constructor(nakamaProvider: NakamaProvider, _notificationsService: NotificationsArena, _friendsService: FriendsArena);
|
|
62
66
|
setAutoJoinChat(isEnabled: boolean): void;
|
|
63
67
|
getJoinedChats(): ChatChannel[];
|
|
@@ -83,6 +87,10 @@ export declare class ChatArena extends NakamaService {
|
|
|
83
87
|
private onChatInviteNotification;
|
|
84
88
|
subscribeChatInviteListener(listener: ChatInviteListener): void;
|
|
85
89
|
removeChatInviteListener(): void;
|
|
90
|
+
subscribeChatJoinerListener(listener: ChatJoinerListener): void;
|
|
91
|
+
removeChatJoinerListener(): void;
|
|
92
|
+
subscribeChatLeaverListener(listener: ChatLeaverListener): void;
|
|
93
|
+
removeChatLeaverListener(): void;
|
|
86
94
|
protected onSocketConnectionChanged(isConnected: boolean): void;
|
|
87
95
|
}
|
|
88
96
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|