Thanks you for your videos, Miguel. I am learning coding now and your videos on websockets have helped me immensely. Greatly appreciate your work and clear explanations.
Dear Miguel, thank you for the excellent tutorial I've commented to notify you that in video the part 8 appear at the end, after parts 9,10 thanks again
amazing video man!!! could you possibly do a video with these two together socket io/ python + javascript for a friend request scenorio along with database
Vayas tus vacas son gordos. Thank you, you are a real clear communicator, and this was really interesting. Do you see the likes of web-sockets protocol replacing REST stateless communications? What do you think will happen? I actually think this type of event driven I/O is more natural. What sort of projects have you used this on?
Thanks for the helpful/awesome tutorial Miguel! In part 8: Authentication, I was not able to set a username in the Firefox browser. The username keeps resulting to None. Any tips on what I should be looking at?
Hi Miguel, on part 3 where we use gunicorn with eventlet, does this mean we are making our socket io server into an asynchronous server? Does one eventlet worker correspond to one thread meaning the server is single-threaded? From what I understand, the eventlet worker is an async worker which can spawn greenlet pseudo threads when a new request(eg new events) is received. Thank you for the tutorial!
Hi Miguel! this tutorial is amazing. What would be the difference if I wanted to implement this inside a Flask server? I assume is mainly on the setup but appreciate any advice you could spare. Thanks in advance!
There is no difference. You can combine Socket.IO and any standard WSGI App (Flask, Django, etc) into a single server. The Flask-SocketIO extension integrates Socket.IO with Flask.
@@miguelgrinberg ok, so the only difference here is that you are setting up a pure socketio server and if I wanted to do it with flask, I’d have to use flask-socketio instead of py-socketio?
Chapters for Part 8, 9, and 10 are mixed up. Part 8 is part 9, Part 9 is part 10, and Part 10 is part 8. Just thought I'd mention in case it's easy enough to fix.
Is it possible to upload files using SocketIO File Upload (siofu) from a JS client to a Python server? any recommendations on where to find information on that subject?
i really really loved this tutorial and learned from it a lot and this is the only content i really find usefull kuz everyone the chat thingy was explained i just have one more doubt more of help u can say and im fairly new at this django channels/socket thing..and im trying to integrate it in django like serverside implementation and my project is based on drf..and the problem is that i learned how to create a server for socket but i dont know how would my fronrend ie react will communicate with that..i tried to find some implementation with django and react but didnt find anything useful and i find few thing but they were all based in django url and using django templates and its url path som im not able to understand how should i communicate it with react.. and i cant also use django-channels So can u please please please help regarding this
Thanks for the tutorial and you are always creating quality content. I do have a question. How to implement the following function with flask-socketio? Create two clients, a user and agent html files respectively. And a python flask server. Agent input message and send message to server then the message will show up in user client html.
I am using RPI as my client and taking many sensor reading every second, but I am confuse if I should use async functionality or regular functionality? Also i am using eventlet in my server. Second question: is it okay if client.py use async functionality but server.py doesn't can they still communicate fine?
You should use sync Python if your hardware I/O library is sync, or async if your I/O library is async. The problem occurs when you mix different modes. The server can be sync or async, doesn't matter.
Hi sir.. I'm using django in a container. I would like to know how can I set my workers more than 1.. or should i make another container to serve my django app for using 4 workers.. if i do that my nginx can't see my socket connections.
Is it possible to just start the server in a specific host and port and allow html pages to connect to it. I am currently making a web app using Laravel Vue and the data will be emitted from a Python Application. I'm wondering if is possible? Thank You
@@miguelgrinberg if it's not too much sir, would it be okay if I ask some pointers or references that I can go to. I'm a bit new in python and js sockets. Thank you
sir iam making a strangers video calling platform like azar i was thinking to have backend python server and js client how can i do that imean how can i p2p using python and socketio
Sorry, but this is an extremely complex question that cannot be answered in a comment. You should learn more about p2p and mabe webrtc if you intend to implement something of this complexity.
Thank you so much miguel ❤️, you’re gem. Your tutorials are awesome. Just request, It will be great if you can also add maybe part where tweaks we need to do to scale our python code. For example i had to tweak socket server library to run along side load balancers, to create lookup service and to do that i had to override few classes. Code can be looked here: github.com/rushi47/Threaded_Socket_Server It will be great if you can explain such advance concepts as well. Basically i learnt python from your tuts only but now am in situation lot of Times where I can’t look anywhere for any help.
@@miguelgrinberg Hey i was talking in general it didn’t need to be mention here, that was one of idea. It will be great if you can share your that experience as well maybe series on highly scaling services.
I already completed this series in your playlist. But just came here to click the like button
I really like your presentation style. No attempt at humour or to be entertaining just explaining clearly what is on the screen. Thanks!!
Love your video as u cleared my doubt regarding socket...before ur video socket was nightmare but now it is like piece of cake.
Thanks you for your videos, Miguel. I am learning coding now and your videos on websockets have helped me immensely. Greatly appreciate your work and clear explanations.
Best tutorial I have seen all year! Thank you !
Excellent, practical and useful. Thank you Miguel!
Very clear and interesting. Exactly what I needed. Thanks Miguel.
Really needed this. Thank you Miguel!!!
Thanks for the great effort providing and open source library and examples
Thank you so much!! I was a bit lost on this subject, but not anymore!
this tutorial saved my course project! thank you so so much for this clear explanation ! ❤
Dear Miguel, thank you for the excellent tutorial
I've commented to notify you that in video the part 8 appear at the end, after parts 9,10
thanks again
1:21:21 - Part 8
awesome as always. Thanks
Thanks sir!
Needed this
Thank you so much!!!
amazing video man!!! could you possibly do a video with these two together socket io/ python + javascript for a friend request scenorio along with database
Pfto!
Thank you
Thank sir
Thanks
Vayas tus vacas son gordos. Thank you, you are a real clear communicator, and this was really interesting. Do you see the likes of web-sockets protocol replacing REST stateless communications? What do you think will happen? I actually think this type of event driven I/O is more natural. What sort of projects have you used this on?
HTTP and WebSocket do not compete, they have different use cases, so I do not expect either one to replace the other.
Thanks for the helpful/awesome tutorial Miguel! In part 8: Authentication, I was not able to set a username in the Firefox browser. The username keeps resulting to None. Any tips on what I should be looking at?
I figured it out, I never added the transport Options on my client
Hi, if possible, could you do a tutorial about how to do load testing for this library by using tools like JMeter, locust...etc.?
Sir please show us that how to deploy flask application with flask-socket.io , gunicorn and nginx
Hi Miguel, on part 3 where we use gunicorn with eventlet, does this mean we are making our socket io server into an asynchronous server? Does one eventlet worker correspond to one thread meaning the server is single-threaded? From what I understand, the eventlet worker is an async worker which can spawn greenlet pseudo threads when a new request(eg new events) is received. Thank you for the tutorial!
A single eventlet worker can handle hundreds or even thousands of concurrent clients. And yes, it is asynchronous.
Hi Miguel! this tutorial is amazing. What would be the difference if I wanted to implement this inside a Flask server? I assume is mainly on the setup but appreciate any advice you could spare. Thanks in advance!
There is no difference. You can combine Socket.IO and any standard WSGI App (Flask, Django, etc) into a single server. The Flask-SocketIO extension integrates Socket.IO with Flask.
@@miguelgrinberg ok, so the only difference here is that you are setting up a pure socketio server and if I wanted to do it with flask, I’d have to use flask-socketio instead of py-socketio?
@@fersalamanca2606 correct.
@@miguelgrinberg Thank you!
Chapters for Part 8, 9, and 10 are mixed up. Part 8 is part 9, Part 9 is part 10, and Part 10 is part 8. Just thought I'd mention in case it's easy enough to fix.
Is it possible to upload files using SocketIO File Upload (siofu) from a JS client to a Python server? any recommendations on where to find information on that subject?
i really really loved this tutorial and learned from it a lot and this is the only content i really find usefull kuz everyone the chat thingy was explained i just have one more doubt more of help u can say and im fairly new at this django channels/socket thing..and im trying to integrate it in django like serverside implementation and my project is based on drf..and the problem is that i learned how to create a server for socket but i dont know how would my fronrend ie react will communicate with that..i tried to find some implementation with django and react but didnt find anything useful and i find few thing but they were all based in django url and using django templates and its url path som im not able to understand how should i communicate it with react..
and i cant also use django-channels
So can u please please please help regarding this
Thanks for the tutorial and you are always creating quality content. I do have a question. How to implement the following function with flask-socketio?
Create two clients, a user and agent html files respectively. And a python flask server.
Agent input message and send message to server then the message will show up in user client html.
Can you tell me can I user python-socketio for real company projects or channels??
I am using RPI as my client and taking many sensor reading every second, but I am confuse if I should use async functionality or regular functionality? Also i am using eventlet in my server. Second question: is it okay if client.py use async functionality but server.py doesn't can they still communicate fine?
You should use sync Python if your hardware I/O library is sync, or async if your I/O library is async. The problem occurs when you mix different modes. The server can be sync or async, doesn't matter.
Hi sir.. I'm using django in a container. I would like to know how can I set my workers more than 1.. or should i make another container to serve my django app for using 4 workers.. if i do that my nginx can't see my socket connections.
Is it possible to just start the server in a specific host and port and allow html pages to connect to it. I am currently making a web app using Laravel Vue and the data will be emitted from a Python Application. I'm wondering if is possible? Thank You
Yes. This package does not care about that. You can configure your python web server to listen on any host and port.
@@miguelgrinberg if it's not too much sir, would it be okay if I ask some pointers or references that I can go to. I'm a bit new in python and js sockets. Thank you
@@miguelgrinberg Just wanna say I appreciate your response ❤️
Can this tutorial be used with flask socketio
When i run
guinicorn -threads 50 app:app
I get error fcnt1 not found
On windows? Try inside the WSL, gunicorn does not run natively on that OS
@@miguelgrinberg okay great thank you!
Sir, thank you for the tutorials. By the way i interested your udemy course mega flask tutorial. Is it still works in 2021?
Yes, the course is still valid and up to date!
@@miguelgrinberg OK. Thank you.
sir iam making a strangers video calling platform like azar i was thinking to have backend python server and js client how can i do that imean how can i p2p using python and socketio
Sorry, but this is an extremely complex question that cannot be answered in a comment. You should learn more about p2p and mabe webrtc if you intend to implement something of this complexity.
Hello,
Is it possible to have server streaming using socket io in python?
Meaning:
One request from client and multiple response from server.
@@rohitkatkar3736 yes, of course.
Thanks for quick response.
Could you please tell me how?
@@rohitkatkar3736 There are no requests or responses. The server or the client can send to the other side whenever they want.
Thanks alot.
I will try again.
Thanks.♥️
Thank you so much miguel ❤️, you’re gem. Your tutorials are awesome.
Just request, It will be great if you can also add maybe part where tweaks we need to do to scale our python code.
For example i had to tweak socket server library to run along side load balancers, to create lookup service and to do that i had to override few classes.
Code can be looked here:
github.com/rushi47/Threaded_Socket_Server
It will be great if you can explain such advance concepts as well.
Basically i learnt python from your tuts only but now am in situation lot of Times where I can’t look anywhere for any help.
There are many ways to deploy a highly available service, and this is largely unrelated to socket.io, so I don't believe it belongs in this course.
@@miguelgrinberg Hey i was talking in general it didn’t need to be mention here, that was one of idea. It will be great if you can share your that experience as well maybe series on highly scaling services.