SlideShare a Scribd company logo
Peter Lubbers Kaazing#dcodeHTML5WebSockets,Web Workers,andGeolocationUnleashed! 
About Peter LubbersDirector of Documentation and Training, Kaazing (The HTML5 WebSocket Company)
Co-Founder San Francisco HTML5 User Grouphttp://www.sfhtml5.org/
Co-author Pro HTML5 Programming

Recommended for you

JavaScript front end performance optimizations
JavaScript front end performance optimizationsJavaScript front end performance optimizations
JavaScript front end performance optimizations

No one wants a slow loading, slow reacting application. As page weight has increased so has the dependency on JavaScript to drive rich user experiences. Today many pages load over 2MBs of JavaScript, but is this healthy? Do your scripts and dependencies perform well? In this session we will review common JavaScript performance bottlenecks, how to detect them and how to eliminate them. This session will review common bad coding syntax, architecture and how to replace them with better alternatives. You will also be exposed to caching, code organization, build and deployment best practices that produce the best user experiences. Finally, you will see how to use the navigation timing and performance timing APIs to fine tune your applications to produce a fast, lean application your customers will love.

web performancejavascript
Chrome enchanted 2015
Chrome enchanted 2015Chrome enchanted 2015
Chrome enchanted 2015

This document contains slides from a presentation on Polymer and modern web APIs. The slides discuss how Polymer uses web components to build reusable custom elements, and how this allows for component-based development. They provide examples of popular elements like <paper-tabs> and <core-toolbar> that are used as building blocks. The slides also showcase several production uses of Polymer at Google scale, including the Google Santa Tracker application. They emphasize how Polymer leverages modern web platform APIs to build fast, modular, and powerful applications.

googlechromeserviceworker
Put a little Backbone in your WordPress
Put a little Backbone in your WordPressPut a little Backbone in your WordPress
Put a little Backbone in your WordPress

This document discusses using Backbone.js to build interactive front-end applications for WordPress. It provides an overview of Backbone and its components like models, collections, and views. It also discusses how Underscore.js is bundled with Backbone and its utility functions. Additionally, it covers how WordPress has integrated with Backbone through features like the JSON REST API and how this can be leveraged to build Backbone applications within WordPress. Finally, it shares an example of a Backbone directory application and resources for learning more about Backbone.

wordpressbackbone
Ultra Distance Runner
Twitter: @peterlubbersCopyright © 2010 - Kaazing Corporation. All rights reserved.
AgendaAbout HTML5
HTML5 Web Workers

Recommended for you

Desktop apps with node webkit
Desktop apps with node webkitDesktop apps with node webkit
Desktop apps with node webkit

Node Webkit allows you to create desktop applications using HTML, CSS, JavaScript and Node.js modules. It combines the Chromium browser and Node.js framework. This allows building cross-platform desktop apps that can include Node functionality and access system resources. Examples are given of apps built with Node Webkit. Key aspects covered include how it integrates Chromium and Node.js, building a basic app, window rendering options, menus, tray apps, and the developer tools. Benefits for a medical conference app replacement are discussed.

node.js
Cool like a Frontend Developer: Grunt, RequireJS, Bower and other Tools
Cool like a Frontend Developer: Grunt, RequireJS, Bower and other ToolsCool like a Frontend Developer: Grunt, RequireJS, Bower and other Tools
Cool like a Frontend Developer: Grunt, RequireJS, Bower and other Tools

Bower, Grunt, and RequireJS are just a few tools that have been re-shaping the frontend development world, replacing cluttered script tags and server-side build solutions with a sophisticated, but sometimes complex approach to dependency management and module loading. In this talk, we'll put on our trendy frontend developer hat and find out how these tools work and how they differ from what we might be used to. Most important, we'll see how using tools like this might look in Symfony2 and how our application can be a friendly place for a frontend guy/gal.

bowerjavascriptgrunt
Develop a vanilla.js spa you and your customers will love
Develop a vanilla.js spa you and your customers will loveDevelop a vanilla.js spa you and your customers will love
Develop a vanilla.js spa you and your customers will love

Do you want to leverage HTML, CSS and JavaScripts APIs to deliver rich user experiences that outlive the framework du jour? Do You want to understand good front-end application architecture and performance principles. Then you want to build applications in Vanilla JS. Despite popular belief Vanilla JS is not as difficult to master and implement as you might think. In this tutorial Chris Love will demonstrate how to apply many common web performance optimization, good architecture and tricks to build a fast, native-like application user experience customers desire without dependency on large, fast food frameworks. This tutorial will demonstrate the following concepts: - Applying the 14kb Rule for Instant Loading - Markup Management - Eliminating Excess AJAX Calls - Working With and Around Application Cache - Applying Service Workers and HTTP/2 For Even Better User Experiences - Leveraging common browser APIs & good architecture

html5javascriptweb performance
HTML5 Geolocation
HTML5 Web Sockets
Q&A    And…the first ones to answer the quiz questions win a free book!Copyright © 2010 - Kaazing Corporation. All rights reserved.
AboutHTML5© 2009 – Kaazing Corporation

Recommended for you

Service worker API
Service worker APIService worker API
Service worker API

Everybody knows Javascript is single-threaded and that it shares this same thread with other browser-related processes such as painting and compositing. There are several techniques to implement pseudo multithreading in JavaScript; however, during this talk we will focus our attention on how to use and debug the Service Worker API. Our end goal is to explore practical use cases in order to simplify the process to render complex user interfaces and transitions in a browser.

javascriptmobileserviceworker
Intro to Vue
Intro to Vue Intro to Vue
Intro to Vue

An introductory presentation on Vue.js done at an internal conference held at the Washington Post (DevDay 2017)

vue.jsjavascriptfront-end
WordPress as the Backbone(.js)
WordPress as the Backbone(.js)WordPress as the Backbone(.js)
WordPress as the Backbone(.js)

This document discusses using WordPress as a backend for building mobile and web applications. It introduces WordPress' REST API which allows accessing WordPress content via HTTP requests. It then outlines how to build a simple mobile-first app called WROPE using the WordPress REST API and the JavaScript library Backbone.js, including setting up models, collections, views and routing to retrieve and display WordPress posts.

spaweb applicationjavascript
HTML5 Paves the Cow PathsDegrade gracefully (Evolution not revolution)
Don't reinvent the wheel (or at least make a better one!)Copyright © 2010 - Kaazing Corporation. All rights reserved.
HTML5: Simple is BetterSimplify wherever possible
Examples:

Recommended for you

jQuery Conference San Diego 2014 - Web Performance
jQuery Conference San Diego 2014 - Web PerformancejQuery Conference San Diego 2014 - Web Performance
jQuery Conference San Diego 2014 - Web Performance

This document discusses jQuery and web performance. It describes how the jQuery Foundation maintains jQuery code and supports developers. It then discusses recent jQuery releases and how jQuery can be customized and used in different environments. The document outlines how the browser loads pages and the importance of prefetching resources. It recommends tools for analyzing page performance like YSlow, PageSpeed, and webpagetest.org. It provides tips for improving performance such as avoiding unnecessary layouts, optimizing JavaScript loops, and using developer tools to profile scripts and identify bottlenecks.

developer toolsweb performancejquery
Building a PWA - For Everyone Who Is Scared To
Building a PWA - For Everyone Who Is Scared ToBuilding a PWA - For Everyone Who Is Scared To
Building a PWA - For Everyone Who Is Scared To

This document provides an overview of building progressive web apps (PWAs). It discusses the key technologies needed for PWAs including manifest files, service workers, and app shells. It provides examples of how to add a manifest to enable installable web apps, how to cache assets using service workers, and how to send push notifications. While Safari and iOS do not fully support these technologies yet, the document notes they are being developed for future releases.

javascriptpwaweb
An Introduction to webOS
An Introduction to webOSAn Introduction to webOS
An Introduction to webOS

webOS is an open source mobile operating system from Palm built on HTML5, CSS, and JavaScript that uses the Mojo framework for application development and provides services through a plugin development kit and application programming interfaces, with apps distributed through an online app catalog.

webosjavascript palm mobile
Native browser ability instead of complex JavaScript code
New doctype
Character set
HTML5 APIs

Recommended for you

Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst
Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirstBuilding CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst
Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst

This document discusses building a registration site using ASP.NET MVC4, Entity Framework Code First, and other technologies. It demonstrates creating a site that allows attendees to register by entering their name and email, with the list only shared among staff. Technologies used include MVC4, Razor syntax, Entity Framework Code First, SQL Server 2012 LocalDB, and libraries from NuGet. Authentication is added using HTTP Basic Authentication to allow access from any client like Excel. An API is also provided. Storing data in Google Spreadsheets is demonstrated as an alternative database.

APIs for modern web apps
APIs for modern web appsAPIs for modern web apps
APIs for modern web apps

Web developers now have a large number of APIs available allowing them to harness complex functionality via JavaScript and produce ever more interesting web experiences. This presentation looks at where we can from, where APIs are going in the future, and what problems we are currently in the process of solving. This includes providing offline installation, multimedia, performance, and more.

fetchperformancepush
APIs, now and in the future
APIs, now and in the futureAPIs, now and in the future
APIs, now and in the future

APIsNow, and in the future discusses the evolution of browser JavaScript APIs. It describes how early APIs allowed new features like geolocation and canvas but more were needed to compete with native apps and improve multimedia, performance, and internationalization support. New APIs like Service Workers and Fetch help enable offline functionality while standards like WebRTC improve media capabilities. The talk argues the web is progressing through continued standardization of device and other APIs.

apivideoaudio
As they say in Holland: “So simple, a child can do the laundry!”Copyright © 2010 - Kaazing Corporation. All rights reserved.
HTML5 : A Plugin-Free ParadigmHTML5 provides native support for many features that were only possible with plugins or complex hacks
Problems with plugins:
May not be installed

Recommended for you

Drupal point of vue
Drupal point of vueDrupal point of vue
Drupal point of vue

With this presentation, I am showing how to easy decouple a simple Drupal blog with Nuxt framework and GraphQL. You will be first shortly introduced to Vue.JS and Nuxt platform with some code examples and in the end, you will be able to clone a Github repository with a full working example: https://github.com/davision/nuxt-graphql-drupal-blog

drupalvuejsvue.js
Why NodeJS
Why NodeJSWhy NodeJS
Why NodeJS

Penjelasan tentang platform NodeJS yang memungkinkan kita menulis code JavaScript di sisi server. Materi dibawakan di meetup Programming Wars Software Architect Indonesia Community tanggal 26 Agustus 2017 di Microsoft Indonesia

nodejsjavascript
V2 peter-lubbers-sf-jug-websocket
V2 peter-lubbers-sf-jug-websocketV2 peter-lubbers-sf-jug-websocket
V2 peter-lubbers-sf-jug-websocket

Peter Lubbers from Kaazing gave a presentation on HTML5 WebSocket and communication technologies to the San Francisco Java User Group. He discussed the limitations of traditional HTTP for real-time applications and how technologies like polling and long polling add complexity. He then introduced HTML5 WebSocket as a new standard that enables true full-duplex communication with low latency. Finally, he briefly covered other HTML5 communication features like Server-Sent Events, XMLHttpRequest Level 2, and Cross Document Messaging.

Can be disabled
Are a separate attack vector
Are difficult to integrate with the rest of an HTML document (plugin boundaries, clipping, and transparency issues)“Whenever a Mac crashes more often than not it’s because of Flash.”--Steve JobsCopyright © 2010 - Kaazing Corporation. All rights reserved.
HTML5 Web Workers-unleashed

Recommended for you

Html5
Html5Html5
Html5

A look at some of exciting features of HTML5, a presentation given by me at Universtiy Seminar in 7th Semester.

htmlhtml5geolocation
Accelerated Adoption: HTML5 and CSS3 for ASP.NET Developers
Accelerated Adoption: HTML5 and CSS3 for ASP.NET DevelopersAccelerated Adoption: HTML5 and CSS3 for ASP.NET Developers
Accelerated Adoption: HTML5 and CSS3 for ASP.NET Developers

HTML5 and CSS3 have arrived. Are you ready to start adopting these technologies in your web projects? Jump start your understanding of the new rich standards and arm yourself with essential techniques for making the most of HTML5 and CSS3 today. In this half-day workshop, you will learn everything you need to know to effectively start leveraging HTML5 and CSS3 in ASP.NET applications. Learn how HTML5 and CSS3 are removing limits from web design. Discover tools and techniques for adopting HTML5 and CSS3 while still supporting older browsers. Leave with the essential knowledge needed to embrace HTML5 and CSS3 in your next ASP.NET project!

developerhtml5css3
HTML5 Introduction by Dhepthi L
HTML5 Introduction by Dhepthi LHTML5 Introduction by Dhepthi L
HTML5 Introduction by Dhepthi L

HTML5 is an evolution of HTML that adds new elements and attributes and improves current ones. It provides better semantic structure, multimedia capabilities like audio and video without plugins, graphics effects using canvas and SVG, file and hardware access, geolocation, web storage, and real-time communication. Key differences from HTML 4 include new semantic elements, multimedia elements like <video> and <audio>, and JavaScript APIs that enable features like drag and drop and geolocation.

html5spritleknowledge exchange
Just Kidding!Copyright © 2010 - Kaazing Corporation. All rights reserved.
Is This HTML5?Many pieces of the HTML5 effort were originally part of the HTML5 specification
Moved to a separate standards document to keep the specification focused
Industry still refers to the original set of features, including Web Sockets, as "HTML5“

Recommended for you

HTML5 WebWorks
HTML5 WebWorksHTML5 WebWorks
HTML5 WebWorks

This document discusses building HTML5 apps with native capabilities for BlackBerry devices. It outlines various HTML5 APIs that can access native device features like geolocation, accelerometer, notifications and more. It also describes how to create custom WebWorks APIs that extend HTML5 functionality by connecting to native device APIs for BlackBerry OS, Tablet OS, and BlackBerry 10. Resources provided include documentation, code samples, and details on the WebWorks SDK and roadmap.

Introduction to html5
Introduction to html5Introduction to html5
Introduction to html5

This document provides an introduction and overview of HTML5. It outlines the key new features and capabilities of HTML5 including structural semantics, web forms, web workers, storage, audio/video, geolocation, web sockets, messaging, history API, drag and drop, and canvas. For each topic, it provides a brief description and links to additional resources for further information. The document aims to cover the major areas introduced in the new HTML5 specification.

html5
Peter lubbers-html5-offline-web-apps
Peter lubbers-html5-offline-web-appsPeter lubbers-html5-offline-web-apps
Peter lubbers-html5-offline-web-apps

The document discusses offline web applications and provides tips for developing them. It includes: - An overview of offline web apps and how they allow users to access cached content without an internet connection using the Application Cache API. - Details on the manifest file format and sections for specifying cached, network, and fallback resources. - Steps for initial caching of resources and how the cache is updated when the manifest or cached files change. - Tips for debugging the offline cache, accessing cached resources, and configuring cache settings and clearing the cache in different browsers.

See: http://www.whatwg.org/specs/web-apps/current-work/multipage/introduction.html#is-this-html5?Copyright © 2010 - Kaazing Corporation. All rights reserved.
HTML5 Web WorkersCopyright © 2010, Kaazing Corporation,. All rights reserved.
HTML5 Web WorkersWithout Web Workers:
Long-running JavaScript tasks can block other JavaScript on the page

Recommended for you

Developing Java Web Applications In Google App Engine
Developing Java Web Applications In Google App EngineDeveloping Java Web Applications In Google App Engine
Developing Java Web Applications In Google App Engine

The document provides an overview of developing Java-based web applications using Google App Engine. It discusses the key features and services of GAE including the runtime environment, datastore, memcache, mail, task queues, images, cron jobs, and user authentication. It also covers limitations, demo examples, and resources for learning more.

java mailjavagoogle
WebSocket Perspectives and Vision for the Future
WebSocket Perspectives and Vision for the FutureWebSocket Perspectives and Vision for the Future
WebSocket Perspectives and Vision for the Future

The document outlines Frank Greco's presentation on WebSocket perspectives and the future vision. It begins with an introduction and background on WebSocket, what it is and isn't. It then discusses how layered protocols can be built on top of WebSocket to address limitations of HTTP for real-time applications. Examples of use cases are then presented including Web trading systems, mobile computing, collaborative presentations, and controlling a remote vehicle via WebSocket messaging.

frankgrecointernet service busnorest
Web II - 01 - Introduction to server-side development
Web II - 01 - Introduction to server-side developmentWeb II - 01 - Introduction to server-side development
Web II - 01 - Introduction to server-side development

Lecture slides for COMP 3512. Suitable for Web 2 course in a degree following CIT/CIS/CS ACM model curriculum.

aspnetteachingweb
JavaScript can cause some browser UIs to hang
With Web Workers:
Background processing capabilities to web applications can be added
Parallel operations can run concurrentlyCopyright © 2010 - Kaazing Corporation. All rights reserved.

Recommended for you

Client-side JavaScript Vulnerabilities
Client-side JavaScript VulnerabilitiesClient-side JavaScript Vulnerabilities
Client-side JavaScript Vulnerabilities

Automatically detecting client side JavaScript vulnerabilities using IBM Rational AppScan and JavaScript Security Analyzer (hybrid analysis)

xssjavascriptvulnerabilities
Fixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World RomaniaFixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World Romania

The document summarizes key aspects of building Firefox OS to address issues with the mobile web. Firefox OS is Mozilla's attempt to make the web a first-class citizen on phones and tablets by starting with the web stack rather than trying to add the web to an existing OS. It has launched in several countries and aims to be an affordable alternative to feature phones and closed platforms. The architecture is based on Linux, Gecko, and web technologies. It provides predictable HTML5 support and addresses performance, fragmentation, security and hardware access through its design and web APIs.

imworldkeynotefirefoxos
Thadomal IEEE-HTML5-Workshop
Thadomal IEEE-HTML5-WorkshopThadomal IEEE-HTML5-Workshop
Thadomal IEEE-HTML5-Workshop

1. The document summarizes HTML5, including its history, key features like semantics, multimedia, forms, and offline capabilities. 2. HTML5 aims to simplify development with new semantic elements, easier form handling, and making audio/video native elements. 3. The geolocation API allows websites to detect a user's location with permission, and features like the app cache and local storage enable offline use of web apps.

html5mobileworkshop
HTML5 Web WorkersWeb Workers are used for
Background number-crunchers
Background notification from server to a local database
Background price updates from server

Recommended for you

Html5(2)
Html5(2)Html5(2)
Html5(2)

HTML5 is a major development in web technology that will transform web development. It emphasizes backwards compatibility while adding new features like multimedia embedding, geolocation, and canvas drawing capabilities. These new features are being integrated into content management systems and supported by browsers, making HTML5 relevant for all types of web content and sites across devices.

Html5(2)
Html5(2)Html5(2)
Html5(2)

1. HTML5 is a major development in web technology that will transform web development and influence both technical and non-technical aspects of content management. 2. It is designed to make all web content accessible across devices by reducing the need for separate site versions. There is an emphasis on backwards compatibility. 3. HTML5 was developed as browsers continued to be flexible with code even when strict XHTML standards were introduced, and aims to build on the way web pages are actually served by browsers.

html5web development
HTML5 Offline Web Applications (Silicon Valley User Group)
HTML5 Offline Web Applications (Silicon Valley User Group)HTML5 Offline Web Applications (Silicon Valley User Group)
HTML5 Offline Web Applications (Silicon Valley User Group)

Robin Zimmermann presented on developing offline web applications using HTML5's Application Cache specification. The presentation covered the WHATWG and W3C specs that define AppCache, how to create a manifest file that lists resources to cache, how browsers handle caching resources when online and serving cached content offline, and tips for testing and debugging offline applications. Example code was provided for manifest file structure and checking browser support using JavaScript.

silicon valley html5 user group offline web applic
Search queries
Graceful degradation? Easy!Copyright © 2010, Kaazing Corporation,. All rights reserved.
DemoCopyright © 2010, Kaazing Corporation,. All rights reserved.
Using the Web Workers APICopyright © 2010, Kaazing Corporation,. All rights reserved.

Recommended for you

GTLAB Installation Tutorial for SciDAC 2009
GTLAB Installation Tutorial for SciDAC 2009GTLAB Installation Tutorial for SciDAC 2009
GTLAB Installation Tutorial for SciDAC 2009

GTLAB is a Java Server Faces tag library that wraps Grid and web services to build portal-based and standalone applications. It contains tags for common tasks like job submission, file transfer, credential management. GTLAB applications can be deployed as portlets or converted to Google Gadgets. The document provides instructions for installing GTLAB, examples of tags, and making new custom tags.

tagswebogce
HTML5 for Rich User Experience
HTML5 for Rich User ExperienceHTML5 for Rich User Experience
HTML5 for Rich User Experience

Canvas and WebGL allow for rich graphics and animation on the web through APIs for 2D and 3D drawing. Forms have been enhanced with new input types like email, number and date pickers. Features like drag and drop, geolocation, notifications and the history API enable more interactive experiences. Browser capabilities have been extended through APIs for multimedia, storage, web sockets and accessing hardware. HTML5 aims to provide these features to enhance user experience without additional plugins.

html5rich ux
CTS Conference Web 2.0 Tutorial Part 2
CTS Conference Web 2.0 Tutorial Part 2CTS Conference Web 2.0 Tutorial Part 2
CTS Conference Web 2.0 Tutorial Part 2

Second Part of a tutorial on Web 2.0 given at CTS2007 Conference May 21 2007. http://www.engr.udayton.edu/faculty/wsmari/cts07/

HTML5 Web WorkersCannot access the web page’s window object (window.document)
No direct access to the web page and the DOM API
Can use the full JavaScript timing API, typically found on the global window
Although HTML5 Web Workers cannot block the browser UI, they can still consume CPU cycles and make the system less responsiveCopyright © 2010, Kaazing Corporation,. All rights reserved.

Recommended for you

High-Speed HTML5
High-Speed HTML5High-Speed HTML5
High-Speed HTML5

Modern Web Apps should be focused, rich, and gorgeous, but they also need to be FAST. After all, being rich and beautiful isn't always enough! With web apps, faster is always better; nobody will ever complain that your site is too fast!

application cacheweb workersdata uri
Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)

The document discusses an HTML5 presentation given by Peter Lubbers at STC12. It provides an agenda for the presentation that includes discussing what HTML5 is, its features, tools for HTML5, and a Q&A. It also shares quotes about the growing adoption of HTML5 and discusses several HTML5 topics like new elements, forms, multimedia, and CSS3.

techcomtechnical writinghtml5 boilerplate
HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)
HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)
HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)

Presentation by Peter Lubbers and Frank Salim presented at the San Francisco HTML5 User Group/GTUGSF Code Lab.

web socketsrealtimehtml5
HTML5 Web Workers APICreate an HTML5 Web Worker object and pass in a JavaScript file to be executed
Use Cross Document Messaging API (PostMessage)
On the web page:
Set up an (asynchronous) event listener to listen to incoming messages and errors from the worker

Recommended for you

HTML5 Real-Time and Connectivity
HTML5 Real-Time and ConnectivityHTML5 Real-Time and Connectivity
HTML5 Real-Time and Connectivity

These are the slides from my "HTML5 Real-TIme and Connectivity" presentation at the San Francisco HTML5 User Group (http://sfhtml5.org). The presentation covers: Web Origin Cross Document Messaging (PostMessage) CORS XHR Level2 WebSocket Server-Sent Events (EventSource) SPDY

html5 communicationhtml5websockets
Peter lubbers-html5-overview-sf-dev-conf-2011
Peter lubbers-html5-overview-sf-dev-conf-2011Peter lubbers-html5-overview-sf-dev-conf-2011
Peter lubbers-html5-overview-sf-dev-conf-2011

This document provides a high-level overview of HTML5 in 3 sentences or less: The document summarizes HTML5, including its history, key features such as semantic markup, forms, multimedia, and CSS3 support, and why developers should use HTML5 over other technologies. It also briefly outlines the major areas covered by HTML5 like semantics, multimedia, graphics, offline storage and more.

htmlhtml5 boilerplatecors
HTML5: The Next Internet Goldrush
HTML5: The Next Internet GoldrushHTML5: The Next Internet Goldrush
HTML5: The Next Internet Goldrush

This HTML5 presentation--delivered at the Society for Technical Communication (STC) in May and again in August 2011--provides a high level overview of HTML5 and discusses the impact that HTML5 will have on Technical Communication.

technical communicationstchtml5
call postMessage to pass data to a worker
On the web page:
Set up an (asynchronous) event listener to listen to incoming messages and errors from the page
call postMessage to pass data to the pageCopyright © 2010, Kaazing Corporation,. All rights reserved.

Recommended for you

HTML5 WebSocket: The New Network Stack for the Web
HTML5 WebSocket: The New Network Stack for the WebHTML5 WebSocket: The New Network Stack for the Web
HTML5 WebSocket: The New Network Stack for the Web

Presentation given on Feb. 11, 2011 at the New York HTML5 User Group by Peter Lubbers and Frank Greco

web socketsweb socketconnectivity
Los Angeles HTML5 User Group Meeting Ask the Expert Session
Los Angeles HTML5 User Group Meeting Ask the Expert SessionLos Angeles HTML5 User Group Meeting Ask the Expert Session
Los Angeles HTML5 User Group Meeting Ask the Expert Session

Slides from the HTML5 User Group Meeting in Los Angeles on 15 December 2010 (http://www.meetup.com/HTML5-CSS3-LA/)

los angeleshtml5 user grouphtml5
HTML5--The 30,000' View (A fast-paced overview of HTML5)
HTML5--The 30,000' View (A fast-paced overview of HTML5)HTML5--The 30,000' View (A fast-paced overview of HTML5)
HTML5--The 30,000' View (A fast-paced overview of HTML5)

A fast-paced overview of HTML5. Topics include: -What is HTML5? -History of HTML5 -WHATWG and W3C specifications -What is part of HTML5? -Using HTML5 Today -Using HTML5 in browsers that do not support it -Detecting native availability of HTML5 features

html5 communicationhtml5 web workershtml5
JavaScript//Check if Web Workers are supportedif (typeof(Worker) !== "undefined") {    document.getElementById("support").innerHTML =          “Your browser supports HTML5 Web Workers";}//Create a new worker//The URL for the JavaScript file can be a relative or //absolute URL with the same origin //(the same scheme, host, and port) as the main pageworker = new Worker("echoWorker.js");//to load additional JavaScriptimportScripts("helper.js, "anotherHelper.js");Copyright © 2010, Kaazing Corporation,. All rights reserved.
JavaScript//Main Pageworker.postMessage("Here's a message for you");//Add event listenerworker.addEventListener("message", messageHandler, true);//Process incoming messagesfunction messageHandler(e) {    // process message from worker}//Handle errorsworker.addEventListener("error", errorHandler, true);//Stop workerworker.terminate();Copyright © 2010, Kaazing Corporation,. All rights reserved.
JavaScript//Workerfunction messageHandler(e) {    postMessage("worker says: " + e.data + " too");}addEventListener("message", messageHandler, true);//Using a Web Worker within a Web Worker var subWorker = new Worker("subWorker.js");Copyright © 2010, Kaazing Corporation,. All rights reserved.
Browser SupportChrome 4.0+

Recommended for you

Firefox 3.5+
Safari 4.0+
Opera 10.6+* May need to be served up from a server (origin security)Copyright © 2010, Kaazing Corporation,. All rights reserved.
HTML5 GeolocationCopyright © 2010, Kaazing Corporation,. All rights reserved.

Recommended for you

Using GeolocationAllows users to share their location for location-aware services
Show user's position on map
Tag content (photos/sound/video)
Turn-by-turn navigation

Recommended for you

Alert users of nearby points of interest
Social networkingCopyright © 2010, Kaazing Corporation,. All rights reserved.
DemoCopyright © 2010, Kaazing Corporation,. All rights reserved.
Geolocation ArchitectureCopyright © 2010, Kaazing Corporation,. All rights reserved.

Recommended for you

Location DataLocation information consists of a pair of latitude and longitude coordinates and accuracy information
Latitude is the numerical value indicating distance north or south of the equator
Longitude is the numerical value indicating distance east or west of Greenwich, England
For Example, Lake Tahoe:Latitude: 39.17222, Longitude: -120.13778Copyright © 2010, Kaazing Corporation,. All rights reserved.

Recommended for you

Location MetadataDepending on the device, additional meta data can be provided:

More Related Content

What's hot

WordPress 2017 with VueJS and GraphQL
WordPress 2017 with VueJS and GraphQLWordPress 2017 with VueJS and GraphQL
WordPress 2017 with VueJS and GraphQL
houzman
 
Thinking in Components
Thinking in ComponentsThinking in Components
Thinking in Components
FITC
 
webworkers
webworkerswebworkers
webworkers
Asanka Indrajith
 
JavaScript front end performance optimizations
JavaScript front end performance optimizationsJavaScript front end performance optimizations
JavaScript front end performance optimizations
Chris Love
 
Chrome enchanted 2015
Chrome enchanted 2015Chrome enchanted 2015
Chrome enchanted 2015
Chang W. Doh
 
Put a little Backbone in your WordPress
Put a little Backbone in your WordPressPut a little Backbone in your WordPress
Put a little Backbone in your WordPress
adamsilverstein
 
Desktop apps with node webkit
Desktop apps with node webkitDesktop apps with node webkit
Desktop apps with node webkit
Paul Jensen
 
Cool like a Frontend Developer: Grunt, RequireJS, Bower and other Tools
Cool like a Frontend Developer: Grunt, RequireJS, Bower and other ToolsCool like a Frontend Developer: Grunt, RequireJS, Bower and other Tools
Cool like a Frontend Developer: Grunt, RequireJS, Bower and other Tools
Ryan Weaver
 
Develop a vanilla.js spa you and your customers will love
Develop a vanilla.js spa you and your customers will loveDevelop a vanilla.js spa you and your customers will love
Develop a vanilla.js spa you and your customers will love
Chris Love
 
Service worker API
Service worker APIService worker API
Service worker API
Giorgio Natili
 
Intro to Vue
Intro to Vue Intro to Vue
Intro to Vue
Isatu Conteh
 
WordPress as the Backbone(.js)
WordPress as the Backbone(.js)WordPress as the Backbone(.js)
WordPress as the Backbone(.js)
Beau Lebens
 
jQuery Conference San Diego 2014 - Web Performance
jQuery Conference San Diego 2014 - Web PerformancejQuery Conference San Diego 2014 - Web Performance
jQuery Conference San Diego 2014 - Web Performance
dmethvin
 
Building a PWA - For Everyone Who Is Scared To
Building a PWA - For Everyone Who Is Scared ToBuilding a PWA - For Everyone Who Is Scared To
Building a PWA - For Everyone Who Is Scared To
Raymond Camden
 
An Introduction to webOS
An Introduction to webOSAn Introduction to webOS
An Introduction to webOS
Kevin Decker
 
Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst
Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirstBuilding CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst
Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst
Jun-ichi Sakamoto
 
APIs for modern web apps
APIs for modern web appsAPIs for modern web apps
APIs for modern web apps
Chris Mills
 
APIs, now and in the future
APIs, now and in the futureAPIs, now and in the future
APIs, now and in the future
Chris Mills
 
Drupal point of vue
Drupal point of vueDrupal point of vue
Drupal point of vue
David Ličen
 
Why NodeJS
Why NodeJSWhy NodeJS
Why NodeJS
Riza Fahmi
 

What's hot (20)

WordPress 2017 with VueJS and GraphQL
WordPress 2017 with VueJS and GraphQLWordPress 2017 with VueJS and GraphQL
WordPress 2017 with VueJS and GraphQL
 
Thinking in Components
Thinking in ComponentsThinking in Components
Thinking in Components
 
webworkers
webworkerswebworkers
webworkers
 
JavaScript front end performance optimizations
JavaScript front end performance optimizationsJavaScript front end performance optimizations
JavaScript front end performance optimizations
 
Chrome enchanted 2015
Chrome enchanted 2015Chrome enchanted 2015
Chrome enchanted 2015
 
Put a little Backbone in your WordPress
Put a little Backbone in your WordPressPut a little Backbone in your WordPress
Put a little Backbone in your WordPress
 
Desktop apps with node webkit
Desktop apps with node webkitDesktop apps with node webkit
Desktop apps with node webkit
 
Cool like a Frontend Developer: Grunt, RequireJS, Bower and other Tools
Cool like a Frontend Developer: Grunt, RequireJS, Bower and other ToolsCool like a Frontend Developer: Grunt, RequireJS, Bower and other Tools
Cool like a Frontend Developer: Grunt, RequireJS, Bower and other Tools
 
Develop a vanilla.js spa you and your customers will love
Develop a vanilla.js spa you and your customers will loveDevelop a vanilla.js spa you and your customers will love
Develop a vanilla.js spa you and your customers will love
 
Service worker API
Service worker APIService worker API
Service worker API
 
Intro to Vue
Intro to Vue Intro to Vue
Intro to Vue
 
WordPress as the Backbone(.js)
WordPress as the Backbone(.js)WordPress as the Backbone(.js)
WordPress as the Backbone(.js)
 
jQuery Conference San Diego 2014 - Web Performance
jQuery Conference San Diego 2014 - Web PerformancejQuery Conference San Diego 2014 - Web Performance
jQuery Conference San Diego 2014 - Web Performance
 
Building a PWA - For Everyone Who Is Scared To
Building a PWA - For Everyone Who Is Scared ToBuilding a PWA - For Everyone Who Is Scared To
Building a PWA - For Everyone Who Is Scared To
 
An Introduction to webOS
An Introduction to webOSAn Introduction to webOS
An Introduction to webOS
 
Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst
Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirstBuilding CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst
Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst
 
APIs for modern web apps
APIs for modern web appsAPIs for modern web apps
APIs for modern web apps
 
APIs, now and in the future
APIs, now and in the futureAPIs, now and in the future
APIs, now and in the future
 
Drupal point of vue
Drupal point of vueDrupal point of vue
Drupal point of vue
 
Why NodeJS
Why NodeJSWhy NodeJS
Why NodeJS
 

Similar to HTML5 Web Workers-unleashed

V2 peter-lubbers-sf-jug-websocket
V2 peter-lubbers-sf-jug-websocketV2 peter-lubbers-sf-jug-websocket
V2 peter-lubbers-sf-jug-websocket
brent bucci
 
Html5
Html5Html5
Accelerated Adoption: HTML5 and CSS3 for ASP.NET Developers
Accelerated Adoption: HTML5 and CSS3 for ASP.NET DevelopersAccelerated Adoption: HTML5 and CSS3 for ASP.NET Developers
Accelerated Adoption: HTML5 and CSS3 for ASP.NET Developers
Todd Anglin
 
HTML5 Introduction by Dhepthi L
HTML5 Introduction by Dhepthi LHTML5 Introduction by Dhepthi L
HTML5 Introduction by Dhepthi L
SPRITLE SOFTWARE PRIVATE LIMIT ED
 
HTML5 WebWorks
HTML5 WebWorksHTML5 WebWorks
HTML5 WebWorks
Raul Jimenez
 
Introduction to html5
Introduction to html5Introduction to html5
Introduction to html5
Muktadiur Rahman
 
Peter lubbers-html5-offline-web-apps
Peter lubbers-html5-offline-web-appsPeter lubbers-html5-offline-web-apps
Peter lubbers-html5-offline-web-apps
Skills Matter
 
Developing Java Web Applications In Google App Engine
Developing Java Web Applications In Google App EngineDeveloping Java Web Applications In Google App Engine
Developing Java Web Applications In Google App Engine
Tahir Akram
 
WebSocket Perspectives and Vision for the Future
WebSocket Perspectives and Vision for the FutureWebSocket Perspectives and Vision for the Future
WebSocket Perspectives and Vision for the Future
Frank Greco
 
Web II - 01 - Introduction to server-side development
Web II - 01 - Introduction to server-side developmentWeb II - 01 - Introduction to server-side development
Web II - 01 - Introduction to server-side development
Randy Connolly
 
Client-side JavaScript Vulnerabilities
Client-side JavaScript VulnerabilitiesClient-side JavaScript Vulnerabilities
Client-side JavaScript Vulnerabilities
Ory Segal
 
Fixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World RomaniaFixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World Romania
Christian Heilmann
 
Thadomal IEEE-HTML5-Workshop
Thadomal IEEE-HTML5-WorkshopThadomal IEEE-HTML5-Workshop
Thadomal IEEE-HTML5-Workshop
Romin Irani
 
Html5(2)
Html5(2)Html5(2)
Html5(2)
CMaughan
 
Html5(2)
Html5(2)Html5(2)
Html5(2)
Carol Maughan
 
HTML5 Offline Web Applications (Silicon Valley User Group)
HTML5 Offline Web Applications (Silicon Valley User Group)HTML5 Offline Web Applications (Silicon Valley User Group)
HTML5 Offline Web Applications (Silicon Valley User Group)
robinzimmermann
 
GTLAB Installation Tutorial for SciDAC 2009
GTLAB Installation Tutorial for SciDAC 2009GTLAB Installation Tutorial for SciDAC 2009
GTLAB Installation Tutorial for SciDAC 2009
marpierc
 
HTML5 for Rich User Experience
HTML5 for Rich User ExperienceHTML5 for Rich User Experience
HTML5 for Rich User Experience
Mahbubur Rahman
 
CTS Conference Web 2.0 Tutorial Part 2
CTS Conference Web 2.0 Tutorial Part 2CTS Conference Web 2.0 Tutorial Part 2
CTS Conference Web 2.0 Tutorial Part 2
Geoffrey Fox
 
High-Speed HTML5
High-Speed HTML5High-Speed HTML5
High-Speed HTML5
Peter Lubbers
 

Similar to HTML5 Web Workers-unleashed (20)

V2 peter-lubbers-sf-jug-websocket
V2 peter-lubbers-sf-jug-websocketV2 peter-lubbers-sf-jug-websocket
V2 peter-lubbers-sf-jug-websocket
 
Html5
Html5Html5
Html5
 
Accelerated Adoption: HTML5 and CSS3 for ASP.NET Developers
Accelerated Adoption: HTML5 and CSS3 for ASP.NET DevelopersAccelerated Adoption: HTML5 and CSS3 for ASP.NET Developers
Accelerated Adoption: HTML5 and CSS3 for ASP.NET Developers
 
HTML5 Introduction by Dhepthi L
HTML5 Introduction by Dhepthi LHTML5 Introduction by Dhepthi L
HTML5 Introduction by Dhepthi L
 
HTML5 WebWorks
HTML5 WebWorksHTML5 WebWorks
HTML5 WebWorks
 
Introduction to html5
Introduction to html5Introduction to html5
Introduction to html5
 
Peter lubbers-html5-offline-web-apps
Peter lubbers-html5-offline-web-appsPeter lubbers-html5-offline-web-apps
Peter lubbers-html5-offline-web-apps
 
Developing Java Web Applications In Google App Engine
Developing Java Web Applications In Google App EngineDeveloping Java Web Applications In Google App Engine
Developing Java Web Applications In Google App Engine
 
WebSocket Perspectives and Vision for the Future
WebSocket Perspectives and Vision for the FutureWebSocket Perspectives and Vision for the Future
WebSocket Perspectives and Vision for the Future
 
Web II - 01 - Introduction to server-side development
Web II - 01 - Introduction to server-side developmentWeb II - 01 - Introduction to server-side development
Web II - 01 - Introduction to server-side development
 
Client-side JavaScript Vulnerabilities
Client-side JavaScript VulnerabilitiesClient-side JavaScript Vulnerabilities
Client-side JavaScript Vulnerabilities
 
Fixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World RomaniaFixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World Romania
 
Thadomal IEEE-HTML5-Workshop
Thadomal IEEE-HTML5-WorkshopThadomal IEEE-HTML5-Workshop
Thadomal IEEE-HTML5-Workshop
 
Html5(2)
Html5(2)Html5(2)
Html5(2)
 
Html5(2)
Html5(2)Html5(2)
Html5(2)
 
HTML5 Offline Web Applications (Silicon Valley User Group)
HTML5 Offline Web Applications (Silicon Valley User Group)HTML5 Offline Web Applications (Silicon Valley User Group)
HTML5 Offline Web Applications (Silicon Valley User Group)
 
GTLAB Installation Tutorial for SciDAC 2009
GTLAB Installation Tutorial for SciDAC 2009GTLAB Installation Tutorial for SciDAC 2009
GTLAB Installation Tutorial for SciDAC 2009
 
HTML5 for Rich User Experience
HTML5 for Rich User ExperienceHTML5 for Rich User Experience
HTML5 for Rich User Experience
 
CTS Conference Web 2.0 Tutorial Part 2
CTS Conference Web 2.0 Tutorial Part 2CTS Conference Web 2.0 Tutorial Part 2
CTS Conference Web 2.0 Tutorial Part 2
 
High-Speed HTML5
High-Speed HTML5High-Speed HTML5
High-Speed HTML5
 

More from Peter Lubbers

Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)
Peter Lubbers
 
HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)
HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)
HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)
Peter Lubbers
 
HTML5 Real-Time and Connectivity
HTML5 Real-Time and ConnectivityHTML5 Real-Time and Connectivity
HTML5 Real-Time and Connectivity
Peter Lubbers
 
Peter lubbers-html5-overview-sf-dev-conf-2011
Peter lubbers-html5-overview-sf-dev-conf-2011Peter lubbers-html5-overview-sf-dev-conf-2011
Peter lubbers-html5-overview-sf-dev-conf-2011
Peter Lubbers
 
HTML5: The Next Internet Goldrush
HTML5: The Next Internet GoldrushHTML5: The Next Internet Goldrush
HTML5: The Next Internet Goldrush
Peter Lubbers
 
HTML5 WebSocket: The New Network Stack for the Web
HTML5 WebSocket: The New Network Stack for the WebHTML5 WebSocket: The New Network Stack for the Web
HTML5 WebSocket: The New Network Stack for the Web
Peter Lubbers
 
Los Angeles HTML5 User Group Meeting Ask the Expert Session
Los Angeles HTML5 User Group Meeting Ask the Expert SessionLos Angeles HTML5 User Group Meeting Ask the Expert Session
Los Angeles HTML5 User Group Meeting Ask the Expert Session
Peter Lubbers
 
HTML5--The 30,000' View (A fast-paced overview of HTML5)
HTML5--The 30,000' View (A fast-paced overview of HTML5)HTML5--The 30,000' View (A fast-paced overview of HTML5)
HTML5--The 30,000' View (A fast-paced overview of HTML5)
Peter Lubbers
 

More from Peter Lubbers (8)

Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)
 
HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)
HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)
HTML5 Real Time and WebSocket Code Lab (SFHTML5, GTUGSF)
 
HTML5 Real-Time and Connectivity
HTML5 Real-Time and ConnectivityHTML5 Real-Time and Connectivity
HTML5 Real-Time and Connectivity
 
Peter lubbers-html5-overview-sf-dev-conf-2011
Peter lubbers-html5-overview-sf-dev-conf-2011Peter lubbers-html5-overview-sf-dev-conf-2011
Peter lubbers-html5-overview-sf-dev-conf-2011
 
HTML5: The Next Internet Goldrush
HTML5: The Next Internet GoldrushHTML5: The Next Internet Goldrush
HTML5: The Next Internet Goldrush
 
HTML5 WebSocket: The New Network Stack for the Web
HTML5 WebSocket: The New Network Stack for the WebHTML5 WebSocket: The New Network Stack for the Web
HTML5 WebSocket: The New Network Stack for the Web
 
Los Angeles HTML5 User Group Meeting Ask the Expert Session
Los Angeles HTML5 User Group Meeting Ask the Expert SessionLos Angeles HTML5 User Group Meeting Ask the Expert Session
Los Angeles HTML5 User Group Meeting Ask the Expert Session
 
HTML5--The 30,000' View (A fast-paced overview of HTML5)
HTML5--The 30,000' View (A fast-paced overview of HTML5)HTML5--The 30,000' View (A fast-paced overview of HTML5)
HTML5--The 30,000' View (A fast-paced overview of HTML5)
 

HTML5 Web Workers-unleashed

Editor's Notes

  1. Google Chrome – every tab is its own program (not one tab within a program). So if one tab goes down, the whole app doesn&apos;t crash.
  2. 150 ms (TCP round trip to set up the connection plus a packet for the message)50 ms (just the packet for the message)
  3. The following steps are shown in the diagram: A user navigates to a location-aware application in the browser.The application web page loads and requests coordinates from the browser by making a Geolocation function call. The browser intercepts this and requests user permission. Let&apos;s assume that the permission is granted.The browser retrieves coordinate information from the device it is running on. For example, the IP address, Wi-Fi, or GPS coordinates. This is an internal function of the browser.The browser sends these coordinates to a trusted external location service, which returns a detailed location that can now be sent back to the host of the HTML5 Geolocation application.
  4. The successCallback function parameter tells the browser which function you want called when the location data is made available. This is important because operations such as fetching location data may take a long time to complete. No user wants the browser to be locked up while the location is retrieved, and no developer wants his program to pause indefinitely—especially because fetching the location data will often be waiting on a user to grant permission. The successCallback is where you will receive the actual location information and act on it.However, as in most programming scenarios, it is good to plan for failure cases. It is quite possible that the request for location information may not complete for reasons beyond your control, and for those cases you will want to provide an errorCallback function that can present the user with an explanation, or perhaps make an attempt to try again. While optional, it is recommended that you provide one.Finally, an options object can be provided to the HTML5 Geolocation service to fine-tune the way it gathers data. This is an optional parameter that we will examine later.
  5. The timeout value deals with the duration needed to calculate the location value, while maximumAge refers to the frequency of the location calculation. If any single calculation takes longer than the timeout value, an error is triggered. However, if the browser does not have an up-to-date location value that is younger than maximumAge, it must refetch another value. Special values apply here: setting the maximumAge to “0” requires the value to always be re-fetched, while setting it to Infinity means it should never be refetched.
  6. This sample works by using the watchPosition() capability we discussed in the last section. Every time a new position is sent to us, we will compare it to the last known position and calculate the distance traveled. This is accomplished using a well-known calculation known as the Haversine formula, which allows us to calculate distance between two longitude and latitude positions on a sphere.
  7. High-message volume, small message size scenario where long-polling is potentially worse than polling.
  8. WebSocket is text-only
  9. HTTP used for handshake onlyOperates over a single socketTraverses firewalls and routers seamlesslyAllows authorized cross-site communicationCookie-based authenticationExisting HTTP load balancersNavigates proxies using HTTP CONNECT, same technique as https, but without the encryption
  10. Text type requires high-order bit setBinary type requires high-order bit _not_ setThere is no defined maximum size. However, the protocol allows either side (browser or server) to terminate the connection if it cannot receive a large frame. So far, the definition of too large is left up to the implementation.If the user agent is faced with content that is too large to behandled appropriately, then it must fail the Web Socket connection.There is probably a practical maximum, but we have not discovered it as far as I know.You can&apos;t have four gigabytes of data in JavaScript, so the practical max is &lt;4GB for the JavaScript implementation.
  11. 150 ms (TCP round trip to set up the connection plus a packet for the message)50 ms (just the packet for the message)
  12. 150 ms (TCP round trip to set up the connection plus a packet for the message)50 ms (just the packet for the message)
  13. Text type requires high-order bit setBinary type requires high-order bit _not_ setThere is no defined maximum size. However, the protocol allows either side (browser or server) to terminate the connection if it cannot receive a large frame. So far, the definition of too large is left up to the implementation.If the user agent is faced with content that is too large to behandled appropriately, then it must fail the Web Socket connection.There is probably a practical maximum, but we have not discovered it as far as I know.You can&apos;t have four gigabytes of data in JavaScript, so the practical max is &lt;4GB for the JavaScript implementation.