Skip to content

Commit

Permalink
Merge pull request #1045 from neet/fix-streaming-url
Browse files Browse the repository at this point in the history
fix: Fix property name for streaming API URL in v2.Instance
  • Loading branch information
neet committed Feb 28, 2024
2 parents 1e41756 + a66f087 commit 2ad9a99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/adapters/config/web-socket-config.ts
Expand Up @@ -19,7 +19,7 @@ export interface WebSocketConfigProps {
* const instance = await rest.v2.instance.fetch();
*
* const streaming = createStreamingAPIClient({
* streamingApiUrl: instance.configuration.urls.streamingApi,
* streamingApiUrl: instance.configuration.urls.streaming,
* })
* ```
*/
Expand Down
2 changes: 1 addition & 1 deletion src/mastodon/entities/v2/instance.ts
Expand Up @@ -28,7 +28,7 @@ export interface InstanceThumbnail {

export interface InstanceUrls {
/** The WebSockets URL for connecting to the streaming API. */
streamingApi: string;
streaming: string;
/** Instance status URL */
status?: string;
}
Expand Down

0 comments on commit 2ad9a99

Please sign in to comment.