iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 06)
Websocket in iOS application to create real-time applications
-
Upload
roman-barzyczak -
Category
Mobile
-
view
1.229 -
download
0
description
Transcript of Websocket in iOS application to create real-time applications
![Page 1: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/1.jpg)
WebsocketReal time in iOS applications.
Cocoaheads 10.04.2014
Kraków - Brainly HQ
![Page 3: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/3.jpg)
Agenda
Why do we need WebSocket?
How does it work?
Practical use cases
Demo application
Q&A
![Page 4: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/4.jpg)
What is websocket?
![Page 5: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/5.jpg)
Why?
![Page 6: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/6.jpg)
Websocket delivers Full Duplex Communication Model
source: http://synrg.csl.illinois.edu/projects/phymac/
![Page 7: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/7.jpg)
HTTP is Half Duplex
![Page 8: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/8.jpg)
source: http://www.websocket.org/quantum.html
Increased Client and Server Communication Efficiency
![Page 9: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/9.jpg)
How does it work?
![Page 10: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/10.jpg)
source: http://www.websocket.org/quantum.html
Polling vs WebSockets
![Page 12: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/12.jpg)
Practical use cases
![Page 13: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/13.jpg)
Chats
Hangouts Messanger
![Page 14: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/14.jpg)
Streams
zadane.pl facebook
![Page 16: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/16.jpg)
Games
DoodleJump
![Page 17: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/17.jpg)
Demo time!
Connect to „Brainly-guest” Visit site: 192.168.13.101/~yoman/
![Page 18: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/18.jpg)
How to implement Websocket in iOS applications? Demo available at: https://github.com/brainly/hive-demo
![Page 19: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/19.jpg)
Q&A
![Page 20: Websocket in iOS application to create real-time applications](https://reader034.fdocuments.us/reader034/viewer/2022042713/549042a1b479597e6a8b5247/html5/thumbnails/20.jpg)