Skip to content

Commit

Permalink
feat: Add new api for send a refresh-token
Browse files Browse the repository at this point in the history
  • Loading branch information
guerinoni committed Jan 30, 2024
1 parent 4d73838 commit 99b754a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -622,4 +622,9 @@ export class StableWSConnection<StreamChatGenerics extends ExtendableGenerics =
}
}, this.connectionCheckTimeout);
};

refreshToken = (token: string) => {
const d = JSON.stringify({ api_key: this.client.key, token });
this.ws?.send(d);
};
}

0 comments on commit 99b754a

Please sign in to comment.