Creating a Chat App With Flask-SocketIO (2023)

preview_player
Показать описание
In this video I show you how to build a simple chat application with Flask-SocketIO.

Рекомендации по теме
Комментарии
Автор

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.

markogrdinic
Автор

Thanks for clutching my school project

TrrTrrr
Автор

Very very nice the video and the code. I will use it like a good example for a my game project. Thanks 🤙

AlessandroModica
Автор

Thanks for the vid! Definitely just what I needed to get up and running!

tylerpetrov
Автор

Thank you for the tutorial.. will try this

abhishekkandari
Автор

How did you deployed it to production?

LoVe-iurd
Автор

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.'

WaldoTheWombat
Автор

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?

itwasnoteasy
Автор

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.

amanavakn
Автор

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

geovannis.a
Автор

How about pushing notifications to this message as well rooms sessions, please make a video.

LoVe-iurd
Автор

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

karolszatkowski
Автор

haven't you allready uploaded that topic a while ago ? 🙂gonna check it :D

jenshauser
Автор

why is it not realistic to place in one file?

en_coded
Автор

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

Kennethlumor
Автор

does anyone knows how to deploy this on live production server?

learnmore
Автор

Sir please and please I just wanted to remind you again about my request on this

Kennethlumor