--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-tornado/7b5a61b5-73f4-4333-85bc-2c125597e148n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-tornado/59949a25-ee7d-4b70-a046-4c5b13d23bd6n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-tornado/1392a978-09a9-4f1c-91f5-fe38dfdbe646n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-tornado/8fbaf34a-d8db-4e6b-b252-5a743fc1bd39n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-tornado/002b4546-051a-453a-88a0-7b75ff3792b2n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-tornado/CAOR_4NCwcTBuqFnrKy%3DgEfZxgFtums6%2BFuF%3DEs0ML08b%2B3t%2BDQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-tornado/CAOR_4NDAMyM0GybMF6gCexV0nY5s-PfS3w7E6WhzOu9w0v26TQ%40mail.gmail.com.
By the way, a google search picked up an example strategy that I think is supposed to work: https://bugs.python.org/file47615/pty_test.py
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-tornado/CAOR_4NDjbewGZC7dobnoS3gth%2BKtie4%3DM6EfUaxb3xuAAEw_qg%40mail.gmail.com.
Hi All,Python version: 3.8Tornado version: 6.1/latestI have a fd connected to a pseudo terminal, I am using select.select(fd, []. []) to read from this. Is there a way to use asyncio/tornado to call write_message once data is available?rlist, wlist, xlist = select.select([self.application.settings["pty_master_fd"]], [], [], timeout_sec)Basically when there is a value in rlist I need to read and send the data to websocket.
I have seen the other thread and some stackoverflow answers , all of them suggest to keep a list of connected ws clients and loop over them to write_message. This seems a bit hackish to me.Is there a way I can use something aysncio/tornado to run the read_emit_pty_otuput function in background and whenever data is available write that to websocket ?
Thanks,PS: Please forgive me if this has already been answered many times.
I am very new to tornado and asyncio.
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-tornado/7b5a61b5-73f4-4333-85bc-2c125597e148n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-tornado/b3c5213c-e13a-4b2a-8017-db1afe196f4fn%40googlegroups.com.