Skip to content

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

Open

Description

@jamesbraza

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

Activity

  1. github-actions commented on Nov 6, 2023

    @github-actions
    Contributor

    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

  2. lukasmasuch commented on Dec 21, 2023

    @lukasmasuch
    Collaborator

    @jamesbraza Thanks for this enhancement request.

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

  3. sfc-gh-dmatthews commented on Jan 25, 2024

    @sfc-gh-dmatthews
    Contributor

    Transferred to docs. Thanks for the suggestion!

  4. VideoFX commented on May 7, 2024

    @VideoFX

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

  5. sefgit commented on May 19, 2024

    @sefgit

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

    st_socketio.py

  6. VideoFX commented on May 19, 2024

    @VideoFX

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions