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 ❤️

Комментарии • 30

  • @NaturalBornCamper
    @NaturalBornCamper 3 года назад +47

    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

  • @Bruh-vp6qf
    @Bruh-vp6qf 3 года назад +2

    Short and to the point. Thank you!

  • @ernestkirubakaran
    @ernestkirubakaran 4 года назад +6

    Thanks a lot for this video. It was very helpful!

    • @vuka951
      @vuka951  4 года назад +1

      Glad it was helpful!

  • @vishalsaigadige4707
    @vishalsaigadige4707 4 года назад +12

    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.

  • @kevon217
    @kevon217 6 месяцев назад

    Great tutorial, thanks

  • @rafaelribeiro9477
    @rafaelribeiro9477 3 года назад

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

  • @desirocker9099
    @desirocker9099 3 года назад +12

    I love it when the text is zoomed out and I cant read anything

    • @AnthonyBecker9
      @AnthonyBecker9 3 года назад +2

      Sarcasm isn't really that helpful tbh

    • @Mankind5490
      @Mankind5490 3 года назад +2

      You need to get your eyes checked lol

    • @ericsarason9099
      @ericsarason9099 3 года назад +1

      Put it in 1080p fullscreen.

    • @ericsarason9099
      @ericsarason9099 3 года назад

      @@Mankind5490 My eyesight is pretty terrible and i had no issues.

    • @Mankind5490
      @Mankind5490 3 года назад +1

      @@ericsarason9099 yeah that's what I'm saying. The text is perfectly readable

  • @question_mark
    @question_mark 2 года назад

    thanks 👌

  • @parkermathews3422
    @parkermathews3422 3 года назад

    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.

  • @sweetdreamsdotexe
    @sweetdreamsdotexe Год назад

    Thanks :)

  • @SurinamElephant
    @SurinamElephant 3 года назад +1

    Whats the advantage of using this instead of channels ?

  • @blackcatdevel0per
    @blackcatdevel0per Год назад

    4:04 I use dictonaries & db(like sqlite) for it with acess token

  • @198liib5
    @198liib5 3 года назад

    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)

    • @kuwertzel8938
      @kuwertzel8938 3 года назад

      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 :)

  • @yeabsirasolomon1943
    @yeabsirasolomon1943 3 года назад

    Hey, could u tell me how to make with secured connection(wss://)? URGENT!

  • @vladostema
    @vladostema Год назад

    What about client disconnects, is socket still trying to send messages to him?

  • @Mrslykid1992
    @Mrslykid1992 2 года назад

    Wish I can click like a billion times!

  • @edust83
    @edust83 3 года назад

    Do you have any idea on how to implement this into Flask... I like this better than SocketIO

  • @altumpax9382
    @altumpax9382 8 месяцев назад

    Why was I trying to listen to that song in the background ///\\\

  • @Datdus92
    @Datdus92 3 года назад +6

    don't make videos when you're in a hurry dude.

  • @TOMMY7JJ
    @TOMMY7JJ 2 года назад +1

    this is a headache

  • @stefkostov9745
    @stefkostov9745 Год назад +1

    Bro you go too fast. For someone who was looking to understand the concept this is not a good video.