# Grpc elixir to python with websocket

**URL:** <https://forum.elixirforum.com/t/grpc-elixir-to-python-with-websocket/50829>\
**Category:** Questions\
**Tags:** grpc, elixir-ls\
**Created:** [October 7, 2022, 4:36am UTC](https://forum.elixirforum.com/t/grpc-elixir-to-python-with-websocket/50829 "2022-10-07T04:36:25Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![rafftre](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/rafftre/32/27526_2.png) [@rafftre](https://forum.elixirforum.com/u/rafftre)\
**Post date:** [October 7, 2022, 9:12am UTC](https://forum.elixirforum.com/t/grpc-elixir-to-python-with-websocket/50829/6 "2022-10-07T09:12:22Z")

</div>

For the third point in the list posted by trisolaran there may be another option that use a long-lived request with streamed response.

The Python API may expose a “subscribe” call with streamed response. When an event occur it streams/send back a new response item.

This solution require keepalive pings to keep connection alive and some error handling code (i.e. in the server you need to force unsubscribe for disconnected clients).

See [Long-lived channels and asynchronous calls](https://groups.google.com/g/grpc-io/c/IFalPtNfRtw)

---

_[View the full topic](https://forum.elixirforum.com/t/grpc-elixir-to-python-with-websocket/50829)._
