黑金之翼
黑金之翼2mo ago

any informations about node.js runtime ?

I've encountered a peculiar issue. When I create an MCP client within an action to connect to an SSE MCP server, after the action concludes, the MCP client persists in the Node.js runtime and continuously attempts to reconnect from an address I never defined. I suspect this is due to the runtime created by "use node". Consequently, I need to determine whether this is a memory leak caused by my code not releasing objects or if it's an issue with the platform. by the way when i add client.close() everything is ok
So far, I've reviewed the documentation, which only mentions the Node.js runtime in two places: https://docs.convex.dev/functions/runtimes https://docs.convex.dev/generated-api/server Are there any articles or clues that discuss the lifecycle of actions using the Node.js runtime?
Runtimes | Convex Developer Hub
Convex functions can run in two runtimes:
server.js | Convex Developer Hub
These exports are not directly available in the convex package!
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?