websocket in ios application to create real-time applications

20
Websocket Real time in iOS applications. Cocoaheads 10.04.2014 Kraków - Brainly HQ

Upload: roman-barzyczak

Post on 13-Dec-2014

1.229 views

Category:

Mobile


0 download

DESCRIPTION

Presentation about: Why do we need WebSocket? How does it work? Practical use cases How we can implement in iOS

TRANSCRIPT

Page 1: Websocket in iOS application to create real-time applications

WebsocketReal time in iOS applications.

Cocoaheads 10.04.2014

Kraków - Brainly HQ

Page 2: Websocket in iOS application to create real-time applications

Roman Barzyczak !

!

Email: [email protected] Twitter: @roman_barzyczak

Head of Mobile, Brainly

Page 3: Websocket in iOS application to create real-time applications

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

What is websocket?

Page 5: Websocket in iOS application to create real-time applications

Why?

Page 6: Websocket in iOS application to create real-time applications

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

HTTP is Half Duplex

Page 8: Websocket in iOS application to create real-time applications

source: http://www.websocket.org/quantum.html

Increased Client and Server Communication Efficiency

Page 9: Websocket in iOS application to create real-time applications

How does it work?

Page 10: Websocket in iOS application to create real-time applications

source: http://www.websocket.org/quantum.html

Polling vs WebSockets

Page 11: Websocket in iOS application to create real-time applications

Give a Handshake

source: http://java.sys-con.com/node/2818935

Page 12: Websocket in iOS application to create real-time applications

Practical use cases

Page 13: Websocket in iOS application to create real-time applications

Chats

Hangouts Messanger

Page 14: Websocket in iOS application to create real-time applications

Streams

zadane.pl facebook

Page 15: Websocket in iOS application to create real-time applications

Live statistics

livescore.com

Page 16: Websocket in iOS application to create real-time applications

Games

DoodleJump

Page 17: Websocket in iOS application to create real-time applications

Demo time!

Connect to „Brainly-guest” Visit site: 192.168.13.101/~yoman/

Page 18: Websocket in iOS application to create real-time applications

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

Q&A

Page 20: Websocket in iOS application to create real-time applications