SlideShare a Scribd company logo
Xproject presentation
Michael Jo
mjtoolbox.wordpress.com
Agenda
• HTML5
• What is WebSocket?
• Usage
• Demo
HTML5
HTML5
•   http://www.w3.org/2012/webapps/charter/
•   Html5 Video : http://www.youtube.com/watch?v=mzPxo7Y6JyA
•   Worth taking a look : http://en.wikipedia.org/wiki/WHATWG
•   Sevral key buzz words : WebSocket, WebForm 2.0, WebWorker, Canvas
•   Canvas demo : http://net.tutsplus.com/articles/web-roundups/21-ridiculously-impressive-html5-
    canvas-experiments/
•   Compatibility check : http://caniuse.com/
•   Websocket Demo : http://www.websocket.org/demos.html
•   Websocket slide : http://www.slideshare.net/ffdead/the-html5-websocket-api
•   JQuery Websocket : http://code.google.com/p/jquery-websocket/
•   JQuery graceful Websocket : http://code.google.com/p/jquery-graceful-websocket/
•   Commercial Websocket server : http://kaazing.com/
•   Java Open source project : http://jwebsocket.org/
•   MS HTML5 Lab : http://html5labs.interoperabilitybridges.com/search?q=websocket&go=
•   .NET Websocket : http://www.codeproject.com/Articles/57060/Web-Socket-Server
Websocket
•   Prior websocket : Long polling, comet
•   RealTime : Minimal latency, large number of concurrent users
•   Full-duplex communication channel (Http is half-duplex channel)
•   Normal traffic unaffected. Ignore non websocket related request.
•   Examples : social networking, gaming, collaborative environment, financial
    applications, etc
•   Server to interpret http and switch to WebSocket (Websocket handshake).
•   ws:// or wss://
•   Significant less traffic : Kilobyte to 2 bytes and reducing 150ms to 50ms
Websocket
   Client                                                  Server

                       onopen()
new WebSocket()                            Servlet               Register application




                    Websocket send()
    ws.send(data)                      WebsocketApplication
                                       onConnect
                                       onMessage

                        ws.send()
onmessage(event)
                                               Instantiate with handler and listener



                                         ClientSocket
                                       Consider it as a client proxy
More info
http://mjtoolbox.wordpress.com/category/html5/
https://github.com/mjtoolbox/WebsocketDemo

More Related Content

PDF
Building interactivity with websockets
PDF
Programming WebSockets - OSCON 2010
PDF
Socket.IO
PDF
KSDG-iSlide App 開發心得分享
PDF
Socket.io
PDF
Ускоряем загрузку картинок вебсокетами
PDF
How to build a realtime, WebSockets-enabled chat in less than 5 minutes
PDF
WebSocket Server - Jul 2010
Building interactivity with websockets
Programming WebSockets - OSCON 2010
Socket.IO
KSDG-iSlide App 開發心得分享
Socket.io
Ускоряем загрузку картинок вебсокетами
How to build a realtime, WebSockets-enabled chat in less than 5 minutes
WebSocket Server - Jul 2010

What's hot (20)

PDF
Neoito — Intro to WebSockets
PDF
Create a module bundler from scratch
PPTX
Virtual Reality on the Web
PDF
Using WebSockets with ColdFusion
ZIP
Websocket protocol overview
PPTX
vlavrynovych - WebSockets Presentation
PDF
Cloud Native Nordics - Real world Istio
KEY
Dancing with websocket
PPTX
Websockets in Node.js - Making them reliable and scalable
PPTX
Webpack | Jakub Kulhan - Skrz.cz
KEY
Pushing the web — WebSockets
KEY
Realtime rocks
PDF
ASFWS 2012 - Node.js Security – Old vulnerabilities in new dresses par Sven V...
PDF
Vault and Security as a Service
PPTX
Intro to WebSockets
PDF
How to deploy your own private cloud with openstack
PDF
WEB SOCKET 應用
PPTX
Windows Azure 2/8 - Recursos básicos do Windows Azure
PDF
Single sign-on
PDF
Real time coding with jWebSocket
Neoito — Intro to WebSockets
Create a module bundler from scratch
Virtual Reality on the Web
Using WebSockets with ColdFusion
Websocket protocol overview
vlavrynovych - WebSockets Presentation
Cloud Native Nordics - Real world Istio
Dancing with websocket
Websockets in Node.js - Making them reliable and scalable
Webpack | Jakub Kulhan - Skrz.cz
Pushing the web — WebSockets
Realtime rocks
ASFWS 2012 - Node.js Security – Old vulnerabilities in new dresses par Sven V...
Vault and Security as a Service
Intro to WebSockets
How to deploy your own private cloud with openstack
WEB SOCKET 應用
Windows Azure 2/8 - Recursos básicos do Windows Azure
Single sign-on
Real time coding with jWebSocket
Ad

Similar to Websocket (20)

PPTX
WebSockets in JEE 7
ODP
Building Websocket Applications with GlassFish and Grizzly
PPTX
Html5 websockets
PDF
Google country day_intervento
PPTX
presentation in .net programming web sockets.pptx
PPS
jWebSocket MobileTechCon 2010 - WebSockets on Android, Symbian and BlackBerry
PPS
Jwebsocketmobiletechcon2010en 100912071225 Phpapp01
PPT
PDF
Realizzare applicazioni Web con WebSocket, by Simone Bordet
PDF
WebSockets: The Current State of the Most Valuable HTML5 API for Java Developers
PDF
Getting Started with WebSocket and Server-Sent Events using Java - Arun Gupta...
PDF
Getting Started with WebSockets and Server-Sent Events
PPTX
Enhancing Mobile User Experience with WebSocket
PDF
SeaBeyond 2011 ProcessOne - Eric Cestari: XMPP over WebSocket
PPTX
HTML 5 - Web Sockets
PDF
WebSocket
PPT
HTML5 WebSocket: The New Network Stack for the Web
PDF
Building Next Generation Real-Time Web Applications using Websockets
PDF
WebSockets Jump Start
PDF
Websockets talk at Rubyconf Uruguay 2010
WebSockets in JEE 7
Building Websocket Applications with GlassFish and Grizzly
Html5 websockets
Google country day_intervento
presentation in .net programming web sockets.pptx
jWebSocket MobileTechCon 2010 - WebSockets on Android, Symbian and BlackBerry
Jwebsocketmobiletechcon2010en 100912071225 Phpapp01
Realizzare applicazioni Web con WebSocket, by Simone Bordet
WebSockets: The Current State of the Most Valuable HTML5 API for Java Developers
Getting Started with WebSocket and Server-Sent Events using Java - Arun Gupta...
Getting Started with WebSockets and Server-Sent Events
Enhancing Mobile User Experience with WebSocket
SeaBeyond 2011 ProcessOne - Eric Cestari: XMPP over WebSocket
HTML 5 - Web Sockets
WebSocket
HTML5 WebSocket: The New Network Stack for the Web
Building Next Generation Real-Time Web Applications using Websockets
WebSockets Jump Start
Websockets talk at Rubyconf Uruguay 2010
Ad

Recently uploaded (20)

PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Cloud computing and distributed systems.
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
“AI and Expert System Decision Support & Business Intelligence Systems”
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Encapsulation theory and applications.pdf
Electronic commerce courselecture one. Pdf
cuic standard and advanced reporting.pdf
Encapsulation_ Review paper, used for researhc scholars
The AUB Centre for AI in Media Proposal.docx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Cloud computing and distributed systems.
Understanding_Digital_Forensics_Presentation.pptx
Programs and apps: productivity, graphics, security and other tools
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Digital-Transformation-Roadmap-for-Companies.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

Websocket

  • 2. Agenda • HTML5 • What is WebSocket? • Usage • Demo
  • 4. HTML5 • http://www.w3.org/2012/webapps/charter/ • Html5 Video : http://www.youtube.com/watch?v=mzPxo7Y6JyA • Worth taking a look : http://en.wikipedia.org/wiki/WHATWG • Sevral key buzz words : WebSocket, WebForm 2.0, WebWorker, Canvas • Canvas demo : http://net.tutsplus.com/articles/web-roundups/21-ridiculously-impressive-html5- canvas-experiments/ • Compatibility check : http://caniuse.com/ • Websocket Demo : http://www.websocket.org/demos.html • Websocket slide : http://www.slideshare.net/ffdead/the-html5-websocket-api • JQuery Websocket : http://code.google.com/p/jquery-websocket/ • JQuery graceful Websocket : http://code.google.com/p/jquery-graceful-websocket/ • Commercial Websocket server : http://kaazing.com/ • Java Open source project : http://jwebsocket.org/ • MS HTML5 Lab : http://html5labs.interoperabilitybridges.com/search?q=websocket&go= • .NET Websocket : http://www.codeproject.com/Articles/57060/Web-Socket-Server
  • 5. Websocket • Prior websocket : Long polling, comet • RealTime : Minimal latency, large number of concurrent users • Full-duplex communication channel (Http is half-duplex channel) • Normal traffic unaffected. Ignore non websocket related request. • Examples : social networking, gaming, collaborative environment, financial applications, etc • Server to interpret http and switch to WebSocket (Websocket handshake). • ws:// or wss:// • Significant less traffic : Kilobyte to 2 bytes and reducing 150ms to 50ms
  • 6. Websocket Client Server onopen() new WebSocket() Servlet Register application Websocket send() ws.send(data) WebsocketApplication onConnect onMessage ws.send() onmessage(event) Instantiate with handler and listener ClientSocket Consider it as a client proxy