Creating a Chat App With Flask-SocketIO (2023)

  Рет қаралды 32,367

Pretty Printed

Pretty Printed

Күн бұрын

Пікірлер: 60
@AlessandroModica
@AlessandroModica 10 ай бұрын
Very very nice the video and the code. I will use it like a good example for a my game project. Thanks 🤙
@tylerpetrov8094
@tylerpetrov8094 Жыл бұрын
Thanks for the vid! Definitely just what I needed to get up and running!
@T3rr4T3rr0r
@T3rr4T3rr0r 9 ай бұрын
Thanks for clutching my school project
@gh0stth3k1d
@gh0stth3k1d 9 ай бұрын
im working on one too XD
@markogrdinic5126
@markogrdinic5126 9 ай бұрын
At 21:57, instead of using the username as the key for the dictionary, it would have been better to swap the two and use the sid instead. Then you wouldn't need to loop over the dictionary and instead could directly index into it using the sid to get the user data.
@annedou7567
@annedou7567 7 ай бұрын
Thanks for the amazing video
@cloudit4985
@cloudit4985 Жыл бұрын
This is awesome! Great video
@abhishekkandari7116
@abhishekkandari7116 Жыл бұрын
Thank you for the tutorial.. will try this
@WaldoTheWombat
@WaldoTheWombat Жыл бұрын
Hi Anthony, do you also have a video where you deploy a flask app that uses web sockets? because I just finished deploying my app watching a deployment tutorial by Tech with Tim, but it seems that the sockets don't work there: 'Cannot obtain socket from WSGI environment.'
@prototypebharrat
@prototypebharrat 10 ай бұрын
Yaa same problem.my app work in development environment but not in deployment
@WaldoTheWombat
@WaldoTheWombat 6 ай бұрын
@@prototypebharrat were you able to solve it?
@alexzakr
@alexzakr Жыл бұрын
It's so cool!
@LoVe-iu9rd
@LoVe-iu9rd Жыл бұрын
How did you deployed it to production?
@robbedeboosere589
@robbedeboosere589 Жыл бұрын
does anyone have instructions for this?
@asokwkwke
@asokwkwke 6 ай бұрын
@@robbedeboosere589 I struggled with deploying for 3 days , then I could successfully deploy my app to heroku! Should I make a video about it?
@WaldoTheWombat
@WaldoTheWombat 6 ай бұрын
were you able do deploy it?
@itwasnoteasy
@itwasnoteasy 8 ай бұрын
Thanks for making the video. Have you deployed flask-socketio over ssl with wss etc on aws or any other cloud instance in a production like environment?
@WaldoTheWombat
@WaldoTheWombat 6 ай бұрын
hello, were you able to deploy it?
@itwasnoteasy
@itwasnoteasy 6 ай бұрын
Yes, I switched to using flask socketio for my project purposes.
@WaldoTheWombat
@WaldoTheWombat 6 ай бұрын
@@itwasnoteasy what do you mean you switced to flask socket-io? That's flask socket-io is what's shown here
@itwasnoteasy
@itwasnoteasy 6 ай бұрын
@WaldoTheWombat - that’s right I was trying to use flask-sock earlier and switched to flask-socketio. Then I installed gevent or eventlet to start the server. It worked fine over https. I don’t recollect the exact steps but it just worked fine. Part of the problem was to figure the exact command line for gunicorn and gevent/eventlet combination.
@WaldoTheWombat
@WaldoTheWombat 6 ай бұрын
​@@itwasnoteasy Could you *please* tell me how to do it?? I've watched both Tech With Tim's and Corey Schafer's tutorials on how to deploy Flask apps, but it doesn't work for web sockets. I get: 'Cannot obtain socket from WSGI environment.' I have no idea how to solve this and non of these tutorials really explain what how all these server programs work.
@Franklin096
@Franklin096 3 ай бұрын
Python version?
@LoVe-iu9rd
@LoVe-iu9rd Жыл бұрын
How about pushing notifications to this message as well rooms sessions, please make a video.
@morshedulislamriaad6496
@morshedulislamriaad6496 Жыл бұрын
ThankYou
@amanavakn205
@amanavakn205 Жыл бұрын
I am getting a 400 (Bad Request) error when trying to connect with the postman. Any idea what is going wrong? BTW video is very informative.
@geovannis.a8687
@geovannis.a8687 Жыл бұрын
Thanks for the Video. Do you know a way to create a multi-chat on the same page? Or do you know a web tool to do that?. Is only a cultural question.. haha
@cauefernandes5706
@cauefernandes5706 2 ай бұрын
I downloaded the source code, but it doesn't work anymore.
@jenshauser6351
@jenshauser6351 Жыл бұрын
haven't you allready uploaded that topic a while ago ? 🙂gonna check it :D
@prettyprinted
@prettyprinted Жыл бұрын
Yeah I did about 6 years ago. I wanted to make an updated video.
@soydara
@soydara Жыл бұрын
How to do with django rest framework?
@prettyprinted
@prettyprinted Жыл бұрын
How would you use sockets in an API app?
@learnmore5438
@learnmore5438 Жыл бұрын
does anyone knows how to deploy this on live production server?
@prettyprinted
@prettyprinted Жыл бұрын
You'll have the easiest time by deploying to your own server instead of using a service. Look into something like Lightsail or Digital Ocean droplets.
@learnmore5438
@learnmore5438 Жыл бұрын
@@prettyprinted thank you, i just deployed it btw.
@WaldoTheWombat
@WaldoTheWombat Жыл бұрын
@@learnmore5438 can you please tell me ho you did it? I just finished deploying my app watching a deployment tutorial by Tech with Tim, but it seems that the sockets don't work there: 'Cannot obtain socket from WSGI environment.'
@WaldoTheWombat
@WaldoTheWombat 6 ай бұрын
@@learnmore5438 Hi, you can please tell me how you managed to deploy it??I tried 2 different tutorial videos, but I always get problems with the sockets
@famisalpedo
@famisalpedo 11 ай бұрын
how to add videocall
@chks_charles
@chks_charles Жыл бұрын
Tell me where i am wrong: 1) useless setting autoconncet to false, your explonation contradicts the idea of ws. after handshake you can pass this name same way - and even you said it when moved to messages. this is useless in this aplicaion? for instance: var socket = io(); socket.on('connect', function() { socket.emit('name', {data: 'Donald Duck'}); }); whats the point of disabling autoConnection here? btw -code above is right from documentation.... 2) why dont you use rooms? sending message to server to emit it back to other users - why? You connect users give them room, and they emit to the room.... this contradicts one of advantages of socketIO as layer on websocet - handling many clinets via rooms... peace
@codedjango
@codedjango Жыл бұрын
With django?
@prettyprinted
@prettyprinted Жыл бұрын
I'll consider making something similar in Django.
@codedjango
@codedjango Жыл бұрын
Thank you 👍
@Kennethlumor
@Kennethlumor Жыл бұрын
Please I'm pleading you to make a video on how to connect Google Oath to flask login, that will make users registered with the Google account before signing in
@en_coded
@en_coded Жыл бұрын
why is it not realistic to place in one file?
@Kennethlumor
@Kennethlumor Жыл бұрын
Sir please and please I just wanted to remind you again about my request on this
@davidk7212
@davidk7212 Жыл бұрын
Sir, please make version in Hindi
Want to make a chat app? Get Real-time With WebSockets & Socket.io!
1:31:40
Good Morning Developers
Рет қаралды 23 М.
How to Use Flask-SQLAlchemy With Flask Blueprints
20:10
Pretty Printed
Рет қаралды 38 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Пишем чат на Flask + SocketIO
19:34
Denis
Рет қаралды 9 М.
Python Socket Programming Tutorial
49:43
Tech With Tim
Рет қаралды 1 МЛН
Socket.io Introduction - How to Build a Chat App
21:38
Dave Gray
Рет қаралды 45 М.
This is How I Scrape 99% of Sites
18:27
John Watson Rooney
Рет қаралды 247 М.
WebSockets in 100 Seconds & Beyond with Socket.io
8:31
Fireship
Рет қаралды 1 МЛН
Python Live Chat Room Tutorial Using Flask & SocketIO
1:19:28
Tech With Tim
Рет қаралды 92 М.
Websockets in Python
17:52
APMonitor.com
Рет қаралды 42 М.
An Example of Celery in a Flask App With Multiple Files
15:40
Pretty Printed
Рет қаралды 22 М.
Online Web Chat in Python With Flask
17:16
NeuralNine
Рет қаралды 80 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН