WebSockets with Python and WebSocket API
HTML-код
- Опубликовано: 20 май 2020
- How to set up a WebSockets Client and Server and Connect them!
-------------------------------------
Code: github.com/Vuka951/tutorial-c...
WebSocket API:
* developer.mozilla.org/en-US/d...
* developer.mozilla.org/en-US/d...
WebSockets: websockets.readthedocs.io/en/...
--------------------------------------
Thanks for watching, if the video was helpful to you a like and/or a star to the github repo would be appreciated ❤️
Some constructive advice:
It might be better to write the code yourself line by line while explaining what each line does instead of copy-pasting from the docs. I went to look on RUclips because their documentation is unclear and lacks explanations, so this is more of the same ;)
And as the others say of course, bigger text and taking your time more
Short and to the point. Thank you!
Thanks a lot for this video. It was very helpful!
Glad it was helpful!
The video is good. But there was a hurry in the explanation.
It's like before I try to understand a concept, you jumped into another.
Great tutorial, thanks
how do I associate to main thread in Flask?
I tried to implement websockets and it works fine but when I tried to implement with my Flask project I've got this error:
RuntimeError: There is no current event loop in thread 'Thread-1'.
I love it when the text is zoomed out and I cant read anything
Sarcasm isn't really that helpful tbh
You need to get your eyes checked lol
Put it in 1080p fullscreen.
@@Mankind5490 My eyesight is pretty terrible and i had no issues.
@@ericsarason9099 yeah that's what I'm saying. The text is perfectly readable
thanks 👌
How do I run the websocket on an already running event loop... Like what if I wanted to have a discordpy bot and the websocket is in a cog.
Thanks :)
Whats the advantage of using this instead of channels ?
4:04 I use dictonaries & db(like sqlite) for it with acess token
Any advice on how to use a websocket fully online, rather than just via local host? I have the index file live but unsure how to push the data using the websocket to a live server (if using the same computer the webpage updates but I want it to update for anyone accessing the page)
This might be completely wrong, but I think you'd have to use the public IP of your home network and then forward the port in your router configuration. Your local IP should also work if you only want to use it within that network.
Again, this could be very wrong and cyber security is a whole other topic :)
Hey, could u tell me how to make with secured connection(wss://)? URGENT!
What about client disconnects, is socket still trying to send messages to him?
Wish I can click like a billion times!
Do you have any idea on how to implement this into Flask... I like this better than SocketIO
The socket should already have a uri
Why was I trying to listen to that song in the background ///\\\
don't make videos when you're in a hurry dude.
this is a headache
Bro you go too fast. For someone who was looking to understand the concept this is not a good video.