SDSU CS 696 - Socket.IO & Sencha Touch (43 pages)

Previewing pages 1, 2, 3, 20, 21, 22, 41, 42, 43 of 43 page document View the full content.
View Full Document

Socket.IO & Sencha Touch



Previewing pages 1, 2, 3, 20, 21, 22, 41, 42, 43 of actual document.

View the full content.
View Full Document
View Full Document

Socket.IO & Sencha Touch

174 views

Other


Pages:
43
School:
San Diego State University
Course:
Cs 696 - Applied Computer Vision

Unformatted text preview:

CS 696 Emerging Web and Mobile Technologies Spring Semester 2011 Doc 15 Socket IO Sencha Touch Mar 10 2011 Copyright All rights reserved 2011 SDSU Roger Whitney 5500 Campanile Drive San Diego CA 92182 7700 USA OpenContent http www opencontent org opl shtml license defines the copyright on this document Thursday March 10 2011 References Sencha Touch API Documentation http dev sencha com deploy touch docs http www sencha com learn Sencha Touch Socket IO http socket io Various web pages as noted on individual slides 2 Thursday March 10 2011 Socket IO 3 Thursday March 10 2011 Problems with Ajax Client has to request data Comet allows directional communication WebSockets simplifies the bi directional connections But not available on all browsers 4 Thursday March 10 2011 Socket IO JavaScript library for Client server communication Detects and uses the most capable transport supported by browser WebSocket Adobe Flash Socket AJAX long polling AJAX multipart streaming Forever Iframe JSONP Polling 5 Thursday March 10 2011 Supported Browsers Internet Explorer 5 5 8 Safari 3 5 Google Chrome 4 6 Firefox 3 4 Opera 10 61 iPhone Safari iPad Safari Android WebKit WebOs WebKit 6 Thursday March 10 2011 Client side communication var socket new io Socket node server url socket connect socket send message callback when connection is made socket on connect function callback on receiving messge from server socket on message function when disconnected socket on disconnect function socket disconnect 7 Thursday March 10 2011 Async Communication var socket new io Socket node server url socket connect socket send Hi Mom socket on message function messageFromServer alert messageFromServer 8 Thursday March 10 2011 Response to send Come in on message Server can send message anytime Server Side Server has to be ready to handle variety of connections WebSocket Adobe Flash Socket AJAX long polling AJAX multipart streaming Forever Iframe JSONP Polling 9 Thursday March 10 2011 Servers Support in Socket



View Full Document

Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view Socket.IO & Sencha Touch and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Socket.IO & Sencha Touch and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?