Replies: 3 comments 1 reply
-
Potentially with this section https://pynecone.io/docs/advanced-guide/api-routes you can have the backend communicate to your other services, it should be able to work with tcp it's using fast api under the hood not a networking person though |
Beta Was this translation helpful? Give feedback.
-
I can possibly use FastAPI's "startup" event to spawn a task into the asyncio event loop, and go from there, but I'm not sure how to get access to the right namespace to do that (or if it would actually even work). I was just being lazy and hoping someone had already figured this out :-) |
Beta Was this translation helpful? Give feedback.
-
Thanks @Alek99! You're right -- if I can't get anything else to work, it looks like I can add a REST API that way, and build the TCP service as a REST client of the backend, but ... that'd be a bit ugly, and I'd rather have everything in one process if there's a way to do it. |
Beta Was this translation helpful? Give feedback.
-
I have an application that needs to have the backend server communicate with other services over a raw TCP protocol (ie. not WebSockets, not HTTP).
Could anyone offer a suggestion for the best way to integrate this with the Pynecone-generated backend application?
Beta Was this translation helpful? Give feedback.
All reactions