Swift: WebSocket Real-Time Data Introduction (2022, iOS, Xcode 13)

Поділитися
Вставка
  • Опубліковано 21 гру 2024

КОМЕНТАРІ •

  • @iOSAcademy
    @iOSAcademy  3 роки тому +14

    Enjoy my teaching style? Check out full series at courses.iosacademy.io

  • @folahanmikolawole8219
    @folahanmikolawole8219 10 місяців тому +1

    omg i'm so glad i found this video, thank you.
    this video is so timely for me right now because at work I'm working on building a social media app with chatting capabilities using websockets. i'm the only ios developer here in the company, and i'm still a mid level ios developer that didn't even know about websockets before now; so i definitely would appreciate more websocket videos

  • @TechRagh
    @TechRagh 3 роки тому +5

    Congratulations on 42K, waiting for 50K celebrations and new videos as always :)

  • @afaaqahmedsaqi
    @afaaqahmedsaqi Рік тому

    Whenever I see iOS Academy name writte below the video no google search, I leave everything and quickly tap on that. Thanks for creating the greate stuff.

  • @oles1837
    @oles1837 3 роки тому +6

    Thank You! Yes more websockets!

  • @rev_kous9275
    @rev_kous9275 3 роки тому +13

    I’m waiting for a video with Clean Architecture (VIP/MVVM, Clean Swift) for iOS.

  • @waheedafolabi6929
    @waheedafolabi6929 Рік тому +3

    Nice walkthrough...thanks.
    In case the websocket server requires some parameters, how do we pass them?
    For example, an authorization token.

  • @despode
    @despode 6 місяців тому

    Hi! Great video! I have a question though. Where does the "let message" come from, i.e. where does the "message" come from? It is not listed anywhere in the in parameters....

  • @kimsanov
    @kimsanov 3 роки тому +8

    I am confused. If we have to manually recursively run receive() method - what is benefits of websocket in comparison to simple polling request?
    I thought that websocket allows somehow receive pushed data from server. Didn’t constant polling drain battery?

    • @shubhamjoshi8481
      @shubhamjoshi8481 2 роки тому

      If you found any solution for this just ping me.

    • @easthastings6919
      @easthastings6919 2 роки тому +1

      lol still no answer. i really hope someone answers us to debunk socket scam pyramide

    • @kimsanov
      @kimsanov 2 роки тому +1

      @@easthastings6919 😅

    • @kimsanov
      @kimsanov 2 роки тому +1

      @@easthastings6919 There are some other ways to use websocket. Found that under Linux You use some kind of hw interrupts. So your code only activates when data arrived. And OS manages other stuff

    • @renedekker9806
      @renedekker9806 2 роки тому +1

      The server cannot simply send a message to the client because it would be blocked by firewalls for security reasons. The server can, however, send a response to a message sent by the client.
      Therefore, under water, the "receive" method sends out a message (call it a "receive request") to the server, and then the server waits with responding to that message until it has something to say. Then the server responds with the data it wants to sent. This response arrives in the completion handler of the "receive" method. The client then sends out a new "receive request", to wait for a new response.
      So the "receive" completion handler is only called when the server has something to say (or after a time out).
      But I agree that it is weird that Apple choose to expose that mechanism in the interface.

  • @divsyntax9720
    @divsyntax9720 7 місяців тому

    Congrats! You've made it to 112k subs!!! 🥳Awesome tut btw!! Love WS, I wanna see more.

  • @obinnaaguwa
    @obinnaaguwa 3 роки тому +3

    It would be a pleasure to a see more please!

  • @eldarkk4566
    @eldarkk4566 3 роки тому +1

    More VIPER, CLEAN ARCHITECTURE, SWINJECT, SOLID, CUSTOM ANIMATIONS, TRANSITIONS, PUSH NOTIFICATION EXTENSIONS, AR, NFC, ASSOCIATED DOMAINS, DEEP LINKING, DYNAMIC LINKING, AUTOMATIC CALL RECEIVE

  • @UmairKhan-bu6gd
    @UmairKhan-bu6gd 2 роки тому

    Can we send Push Notification with Socket

  • @mohammadolwan6432
    @mohammadolwan6432 2 роки тому

    Hello, how can get "wss" protocol?

  • @duyliem1770
    @duyliem1770 2 роки тому

    Hi friend, is it possible to connect to websocket when app is killed?

  • @rommelreyes82
    @rommelreyes82 2 роки тому

    How can I make a program with socket and swift that allows the user to reserve seats for an airplane? It's a project from the university. I need help.

  • @dhav7634
    @dhav7634 2 роки тому +1

    Great video.
    Can you explain how the recursive send function will ever reach the sending part since we are calling send() just before it ?

    • @renedekker9806
      @renedekker9806 2 роки тому

      The only thing the recursive send does is dispatch an action to be executed after 1 second. It returns immediately, and does not wait for that action to be executed.

  • @mokh08
    @mokh08 2 роки тому +1

    I really enjoyed that and thanksssss

  • @andrewdunbar828
    @andrewdunbar828 Рік тому

    A macOS command line app example would be useful.

  • @Mettaworldj
    @Mettaworldj 3 роки тому +1

    This is so timely thank you!!

  • @alwaysrookie583
    @alwaysrookie583 3 роки тому +2

    You are a good man

  • @phase5mediallc513
    @phase5mediallc513 Рік тому

    This example was great in Storyboard format... Do you have example using SWIFTUI? I imagine it is similar - but different..

  • @saikumarreddygujjula3703
    @saikumarreddygujjula3703 2 роки тому +1

    Yes want more websockets!

  • @oak_lef8408
    @oak_lef8408 2 роки тому +1

    Will this work on an M1 mac?

  • @hungpham-qb6ch
    @hungpham-qb6ch 3 роки тому

    Do you have any course use Storyboard?

  • @manishah92
    @manishah92 3 роки тому +2

    thank you so much

  • @codechamp2599
    @codechamp2599 3 роки тому

    Please make video on mvvm along with alamofire, swifty json with repository design pattern please

  • @buck-johnson
    @buck-johnson 3 роки тому +1

    This was a great video thanks.

  • @terrywong8005
    @terrywong8005 3 роки тому

    Thanks for demo on how to use websocket on iOS app. Just one question about the demo. You said calling ping function for keep alive purpose. But why you only calling it in the didOpenWithProtocol delegate once only? the ping function are needed to call more oftenly? like once per minute etc?

  • @HuajingLu
    @HuajingLu 3 роки тому

    hello,could you please make a video to teach how to build an ios app with aws rather than firebase,because in China,the firebase services are all blocked. I would really appreciate that

  • @tayyabmubeen8798
    @tayyabmubeen8798 3 роки тому +1

    Looking for more content on web socket Please

  • @JeffreyLarsen
    @JeffreyLarsen 2 роки тому +4

    This is some good stuff! Unfortunately I'm late to the IOS dev game, so I have only learned Swift with SwiftUI. I might be in a minority asking this, but it looks like you are looking to do websockets again in the future, could you tackle it from the SwiftUI side? And/Or (this might be a stretch but) using the Combine framework? Like is that even possible? Thanks all the questions you've answered and now questions you let me ask

    • @iOSAcademy
      @iOSAcademy  2 роки тому

      Absolutely

    • @oak_lef8408
      @oak_lef8408 2 роки тому

      I'm an robotics engineer trying to learn some Swift to make a simple robotics control iOS app using a websocket to connect to a Raspberry Pi so this would be super helpful since I'm using SwiftUI!

  • @abhishekmahajan3432
    @abhishekmahajan3432 3 роки тому

    Great video.

  • @mattdamon2532
    @mattdamon2532 3 роки тому +1

    Thanks!

  • @luki8502
    @luki8502 3 роки тому

    Kinda unrelated to this video but is there any reason you did the Instagram and Spotify apps with CGRects and not AutoLayout? Since you understand how it works I couldn’t get why you were doing all those maths calculations 🤯 Also those don’t bring landscape support

    • @iOSAcademy
      @iOSAcademy  3 роки тому +1

      Both autolayout & frame layout are used professionally. I just preferred frame based

  • @setilanaji8442
    @setilanaji8442 3 роки тому

    OMG OMG OMG
    You're the best

  • @perrygupta
    @perrygupta 9 місяців тому

    Perfect

  • @gregfrllo
    @gregfrllo 3 роки тому +1

    more socket please :)

    • @iOSAcademy
      @iOSAcademy  3 роки тому

      Coming soon!

    • @KK-pq6lu
      @KK-pq6lu 3 роки тому

      Would like to see how to get socket addresses and address of the device

  • @aniketkumar3218
    @aniketkumar3218 2 роки тому

    wss = websocket secure
    not websocket stream

  • @andrewdunbar828
    @andrewdunbar828 Рік тому

    parenthasea

  • @victorriurean
    @victorriurean 2 роки тому +1

    🔥🔥🔥

  • @vichhaikan7248
    @vichhaikan7248 3 роки тому

    It would be a pleasure if you can make a real-life example app.Thank you.

  • @eldarkk4566
    @eldarkk4566 3 роки тому +1

    More sockets and payments online

  • @mac6779
    @mac6779 3 роки тому

    content is good. video quality needs to be improved.

  • @Tenly2009
    @Tenly2009 3 роки тому +1

    “It’s really not a lot of code”
    Yeah 🤦🏻‍♂️ …. Because you cut so many corners and left out a ton of stuff that should be there - even in a demo.
    Maybe if you stopped going over how to create a new project and if you started with your UI already designed, you’d be able to devote a more appropriate amount of time and code to the actual topic of the video.