We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A way to easily cancel streams like in reactnative cancelStream() but in node-sdk
cancelStream()
https://github.com/xmtp/xmtp-react-native/blob/2a3cd0a67b5fdb775155f1d9b5dac0da51b8d502/src/lib/Conversations.ts#L450-L468
The text was updated successfully, but these errors were encountered:
This is happenning consistently in our GM bot
Sorry, something went wrong.
async terminate() { if (this.isTerminated) { return super.terminate(); // Already terminated, just call parent } this.isTerminated = true; try { // Close streams if they exist if ( this.messageStream && typeof this.messageStream.return === "function" ) { await this.messageStream.return(); } } catch (error) { console.error(`[${this.nameId}] Error during stream cleanup:`, error); } // Call parent terminate return super.terminate(); }
No branches or pull requests
A way to easily cancel streams like in reactnative
cancelStream()
but in node-sdkhttps://github.com/xmtp/xmtp-react-native/blob/2a3cd0a67b5fdb775155f1d9b5dac0da51b8d502/src/lib/Conversations.ts#L450-L468
The text was updated successfully, but these errors were encountered: