Skip to content
New issue

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

Request: tutorial for Socket.IO via python-socketio integration #944

Open
jamesbraza opened this issue Nov 6, 2023 · 6 comments
Open

Request: tutorial for Socket.IO via python-socketio integration #944

jamesbraza opened this issue Nov 6, 2023 · 6 comments

Comments

@jamesbraza
Copy link

jamesbraza commented Nov 6, 2023

Summary

I am trying to use Socket.IO via python-socketio to stream logs from my back end to my Streamlit front end.

There are a few Streamlit discussions on working with Socket.IO, but none are "complete":

The request is to make a comprehensive demo of Streamlit working with python-socketio. It would be cool if the demo involved my somewhat simple use case, which is streaming logs from the back end to the front end.

Why?

Socket.IO (basically abstraction for WebSockets) is a way of enabling real-time bidirectional communication between back end and front end. I think it's a common tool.

How?

Perhaps an Advanced features article

Additional Context

No response

Copy link
Contributor

github-actions bot commented Nov 6, 2023

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Visits

@lukasmasuch
Copy link
Collaborator

@jamesbraza Thanks for this enhancement request.

@sfc-gh-dmatthews we probably want to move this request to our docs repo, or?

@sfc-gh-dmatthews sfc-gh-dmatthews transferred this issue from streamlit/streamlit Jan 25, 2024
@sfc-gh-dmatthews
Copy link
Contributor

Transferred to docs. Thanks for the suggestion!

@VideoFX
Copy link

VideoFX commented May 7, 2024

Is there a tutorial on this after all? I was looking for the same thing just now.

@sefgit
Copy link

sefgit commented May 19, 2024

Inspired by st_route.py, I made the following to enable Socket.IO (server) in streamlit.

st_socketio.py

@VideoFX
Copy link

VideoFX commented May 19, 2024

Thank you @sefgit , I will try it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants