Socket.IO with Python and JavaScript

Socket.IO with Python and JavaScript

Miguel Grinberg

3 года назад

39,515 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Beauty Beast
Beauty Beast - 18.08.2023 08:40

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.

Ответить
Salma
Salma - 18.06.2023 15:03

this tutorial saved my course project! thank you so so much for this clear explanation ! ❤

Ответить
daan van leeuwen
daan van leeuwen - 16.03.2023 18:06

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?

Ответить
Rohit katkar
Rohit katkar - 31.01.2023 12:17

Hello,
Is it possible to have server streaming using socket io in python?

Ответить
Satyam 231
Satyam 231 - 14.12.2022 08:34

Love your video as u cleared my doubt regarding socket...before ur video socket was nightmare but now it is like piece of cake.

Ответить
Stuart Woodward
Stuart Woodward - 13.10.2022 02:38

I really like your presentation style. No attempt at humour or to be entertaining just explaining clearly what is on the screen. Thanks!!

Ответить
Leamon
Leamon - 07.10.2022 11:50

Hi, if possible, could you do a tutorial about how to do load testing for this library by using tools like JMeter, locust...etc.?

Ответить
Ali Hassan
Ali Hassan - 06.10.2022 20:11

Can this tutorial be used with flask socketio

Ответить
Ali Hassan
Ali Hassan - 23.08.2022 15:09

When i run

guinicorn —threads 50 app:app

I get error fcnt1 not found

Ответить
Smith Christian
Smith Christian - 13.07.2022 23:01

Hi Miguel, I am using python for client socket-io server and is it okay to use emit() straight inside connect event instead of putting start_background_task() inside connect event? I want to avoid / is not a connected namespace.

Ответить
TutooJoe
TutooJoe - 23.05.2022 10:21

Thanks

Ответить
Mirror Infinite
Mirror Infinite - 02.03.2022 12:19

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!

Ответить
Chip
Chip - 21.02.2022 20:35

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

Ответить
mochy
mochy - 09.01.2022 04:36

Thank you so much!!!

Ответить
Robson Sampaio
Robson Sampaio - 26.10.2021 16:38

Thank you so much!! I was a bit lost on this subject, but not anymore!

Ответить
eiPi1 O
eiPi1 O - 23.10.2021 07:21

Very clear and interesting. Exactly what I needed. Thanks Miguel.

Ответить
Fer Salamanca
Fer Salamanca - 16.10.2021 01:19

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!

Ответить
ThatGuyYouSaw
ThatGuyYouSaw - 24.09.2021 19:59

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.

Ответить
Raden x BruceLeean
Raden x BruceLeean - 24.09.2021 07:37

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

Ответить
Gui Reis
Gui Reis - 23.09.2021 01:13

Pfto!

Ответить
KLEYDER FERNANDO MORÁN FLORES
KLEYDER FERNANDO MORÁN FLORES - 27.07.2021 19:38

Really needed this. Thank you Miguel!!!

Ответить
Yogesh Dubey
Yogesh Dubey - 18.07.2021 13:34

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

Ответить
Petre Iordanescu
Petre Iordanescu - 04.07.2021 16:39

Excellent, practical and useful. Thank you Miguel!

Ответить
El Bajadour Villacampa
El Bajadour Villacampa - 17.06.2021 14:58

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

Ответить
El Bajadour Villacampa
El Bajadour Villacampa - 11.06.2021 09:04

Needed this <3

Ответить
Holy Proton
Holy Proton - 07.06.2021 18:52

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?

Ответить
Dreawing
Dreawing - 28.05.2021 10:04

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.

Ответить
Paul Shortridge
Paul Shortridge - 18.03.2021 14:58

Best tutorial I have seen all year! Thank you !

Ответить
hfe18
hfe18 - 10.03.2021 08:17

Thanks for the great effort providing and open source library and examples

Ответить
sapera monti
sapera monti - 06.03.2021 12:57

Can you tell me can I user python-socketio for real company projects or channels??

Ответить
Intan Ardinda Pramanova
Intan Ardinda Pramanova - 03.03.2021 13:57

Sir, thank you for the tutorials. By the way i interested your udemy course mega flask tutorial. Is it still works in 2021?

Ответить
Daniel Xing
Daniel Xing - 01.03.2021 08:04

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.

Ответить
Feri Lukmansyah
Feri Lukmansyah - 19.02.2021 18:19

Thank sir

Ответить
just me
just me - 19.02.2021 01:45

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

Ответить
Subin Sunderdas
Subin Sunderdas - 18.02.2021 16:01

Thank you

Ответить
Hyun Jeon
Hyun Jeon - 17.02.2021 15:07

I already completed this series in your playlist. But just came here to click the like button

Ответить
Ranga bharath
Ranga bharath - 17.02.2021 14:25

awesome as always. Thanks

Ответить
John Markham
John Markham - 11.01.2021 20:28

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?

Ответить
Alvaro Martín
Alvaro Martín - 11.01.2021 03:04

Thanks sir!

Ответить