stream-chat-angular 4.31.2 → 4.32.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.
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +23 -22
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/chat-client.service.js +13 -7
- package/fesm2015/stream-chat-angular.js +13 -7
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/chat-client.service.d.ts +7 -3
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -52,11 +52,15 @@ export declare class ChatClientService<T extends DefaultStreamChatGenerics = Def
|
|
|
52
52
|
/**
|
|
53
53
|
* Creates a [`StreamChat`](https://github.com/GetStream/stream-chat-js/blob/668b3e5521339f4e14fc657834531b4c8bf8176b/src/client.ts#L124) instance using the provided `apiKey`, and connects a user with the given meta data and token. More info about [connecting users](https://getstream.io/chat/docs/javascript/init_and_users/?language=javascript) can be found in the platform documentation.
|
|
54
54
|
* @param apiKey
|
|
55
|
-
* @param userOrId
|
|
56
|
-
* @param userTokenOrProvider You can provide
|
|
55
|
+
* @param userOrId you can emit this for anonymous logins
|
|
56
|
+
* @param userTokenOrProvider You can provide:<ul>
|
|
57
|
+
* <li> a token, </li>
|
|
58
|
+
* <li> the keyword 'guest' to connect as [guest user](https://getstream.io/chat/docs/javascript/authless_users/?language=javascript#guest-users) </li>
|
|
59
|
+
* <li> the keyword 'anonymous' to connect as [anonymous user](https://getstream.io/chat/docs/javascript/authless_users/?language=javascript#anonymous-users) </li>
|
|
60
|
+
* </ul>
|
|
57
61
|
* @param clientOptions Setting to provide to the Stream client instance
|
|
58
62
|
*/
|
|
59
|
-
init(apiKey: string, userOrId: string | OwnUserResponse<T> | UserResponse<T
|
|
63
|
+
init(apiKey: string, userOrId: string | OwnUserResponse<T> | UserResponse<T> | undefined, userTokenOrProvider: TokenOrProvider | 'anonymous' | 'guest', clientOptions?: StreamChatOptions): ConnectAPIResponse<T>;
|
|
60
64
|
/**
|
|
61
65
|
* Disconnects the current user, and closes the WebSocket connection. Useful when disconnecting a chat user, use in combination with [`reset`](./ChannelService.mdx/#reset).
|
|
62
66
|
*/
|
package/package.json
CHANGED
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.
|
|
1
|
+
export const version = '4.32.0';
|