Skip to content

Commit a66f087

Browse files
committed
fix: Fix property name for streaming API URL in v2.Instance
1 parent 1e41756 commit a66f087

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/adapters/config/web-socket-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface WebSocketConfigProps {
1919
* const instance = await rest.v2.instance.fetch();
2020
*
2121
* const streaming = createStreamingAPIClient({
22-
* streamingApiUrl: instance.configuration.urls.streamingApi,
22+
* streamingApiUrl: instance.configuration.urls.streaming,
2323
* })
2424
* ```
2525
*/

src/mastodon/entities/v2/instance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface InstanceThumbnail {
2828

2929
export interface InstanceUrls {
3030
/** The WebSockets URL for connecting to the streaming API. */
31-
streamingApi: string;
31+
streaming: string;
3232
/** Instance status URL */
3333
status?: string;
3434
}

0 commit comments

Comments
 (0)