Skip to content

Commit

Permalink
Merge pull request #698 from xmtp/insipx/on-connection-lost
Browse files Browse the repository at this point in the history
add err to OnConnectionLost
  • Loading branch information
insipx authored Oct 30, 2024
2 parents 50d2684 + d36d24f commit d4fcf41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdks/js-sdk/src/ApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export type SubscriptionManager = {
updateContentTopics?: UpdateContentTopics;
};

export type OnConnectionLostCallback = () => void;
export type OnConnectionLostCallback = (err?: Error) => void;

const isAbortError = (err?: Error): boolean => {
if (!err) {
Expand Down

0 comments on commit d4fcf41

Please sign in to comment.