Replies: 1 comment 4 replies
-
Have you seen our chat app example? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I'm looking to make a simple app right now to enable chatting between people.
Ie, there would be a database with users, and various users can agree to chat between each other, similar to Discord.
The details of that are irrelevant, but I'd like to basically be able to send message to specific IP's to update their UI / control the UI of specific users globally, and I was wondering if that was possible with NiceGUI.
To clarify, I want to be able to do the following:
2+ people join the webapp. It shows their usernames (for debugging, I did IPs). Then they should be able to click on the IP which sends a request to the person with that IP. That person can then accept, and they then join a conversation together.
The part that I can't seem to figure out is how to send that request to the person with a specific IP. I'm sure it's possible with websockets, but I can't seem to do that part. The other part that's confusing to me is updating the list of IP's globally. Right now, you'd need to refresh for this functionality, but it does technically work. Help would be appreciated there.
I'm not sure if this is possible to do in NiceGUI given how the backend side of things are setup, but I'd be interested in learning more!
Here is the sample code that I alluded to in the previous text.
Let me know if any parts were unclear - I tried my best to explain it
Beta Was this translation helpful? Give feedback.
All reactions