SlideShare une entreprise Scribd logo
1  sur  13
Télécharger pour lire hors ligne
Alberto Mancini
                              alberto@jooink.com

                              Francesca Tosi
                              francesca@jooink.com




6 Luglio 2011- Palazzo Corsini - Firenze
Target

                              http://www.jooink.com

         Cercare di capire quanto le applicazioni
         "web" possono essere interattive

         ... senza flash
         ... senza applets
         ... senza plugins




                   HTML5: WebSockets
Rules




        • multi-user (almeno bi-)
        • applicazione 'semplice'
        • grafica banale
        • GWT
        • weekend-app (da sviluppare in un paio
          di giorni)
App
      Simple Sample - PONG
WebSocket

            http://dev.w3.org/html5/websockets/

            http://websocket.org/




                     "... a technology providing for bi-
            directional, full-duplex communications
            channels, over a single Transmission Control
            Protocol (TCP) socket."
WebSocket             var uri= "ws://...."
                      var ws = new WebSocket(uri);
                      ws.onmessage = function ...
                      [onopen,onclose, onerror]
                      ws.send(msg)


            HTTPServlet +
            public WebSocket
            doWebSocketConnect(HttpServletRequest r,...)
            interface Websocket {
               public onOpen(Connection cnt);
               public onClose(...);
            }
            interface Websocket.OnTextmessage {
               public void onMessage(String msg)
            }
            cnt.sendMessage(String msg)


                                                           8
WebSocket             var uri= "ws://...."
                      var ws = new WebSocket(uri);
                      ws.onmessage = function ...
                      [onopen,onclose, onerror]
                      ws.send(msg)


            HTTPServlet +
            public WebSocket
            doWebSocketConnect(HttpServletRequest r,...)
            interface Websocket {
               public onOpen(Connection cnt)
               public onClose(...)
            }
            interface Websocket.OnTextmessage {
               public void onMessage(String msg)
            }
            cnt.sendMessage(String msg)


                                                           8
schema   Case 1:
schema   Case 2:
pong



       play !! :-)




       jooink1.jooink.com/pong
schema   Case 3:
schema   Case 4:
That's all
folks !


                         That's all
                           :-)


             jooink1.jooink.com/pong
             jooink1.jooink.com/box2dTest

Contenu connexe

Tendances

Conditional Comments
Conditional CommentsConditional Comments
Conditional Comments
Mu Chun Wang
 
Node Js Websocket Js Meetup Slides
Node Js Websocket Js Meetup SlidesNode Js Websocket Js Meetup Slides
Node Js Websocket Js Meetup Slides
Makoto Inoue
 

Tendances (10)

Conditional Comments
Conditional CommentsConditional Comments
Conditional Comments
 
using Virtualbox NAT and shared folder
using Virtualbox NAT and shared folderusing Virtualbox NAT and shared folder
using Virtualbox NAT and shared folder
 
Require js + backbone, bower and grunt
Require js + backbone, bower and gruntRequire js + backbone, bower and grunt
Require js + backbone, bower and grunt
 
Of REST and Beans
Of REST and BeansOf REST and Beans
Of REST and Beans
 
Tanker: keep your secrets (in a) safe
Tanker: keep your secrets (in a) safeTanker: keep your secrets (in a) safe
Tanker: keep your secrets (in a) safe
 
Velocity 2011 - Our first DDoS attack
Velocity 2011 - Our first DDoS attackVelocity 2011 - Our first DDoS attack
Velocity 2011 - Our first DDoS attack
 
Node Js Websocket Js Meetup Slides
Node Js Websocket Js Meetup SlidesNode Js Websocket Js Meetup Slides
Node Js Websocket Js Meetup Slides
 
Kumpulan script jahil
Kumpulan script jahilKumpulan script jahil
Kumpulan script jahil
 
Raspberry home server
Raspberry home serverRaspberry home server
Raspberry home server
 
Nectec Reports Matichon 081009
Nectec Reports  Matichon 081009Nectec Reports  Matichon 081009
Nectec Reports Matichon 081009
 

En vedette (6)

2010 Toyota Solara Orchard Park
2010 Toyota Solara Orchard Park2010 Toyota Solara Orchard Park
2010 Toyota Solara Orchard Park
 
Job opportunities in_google_emea
Job opportunities in_google_emeaJob opportunities in_google_emea
Job opportunities in_google_emea
 
2010 Toyota Sequoia Orchard Park
2010 Toyota Sequoia Orchard Park2010 Toyota Sequoia Orchard Park
2010 Toyota Sequoia Orchard Park
 
extended slow parts, HTML5 meets WPO
extended slow parts, HTML5 meets WPOextended slow parts, HTML5 meets WPO
extended slow parts, HTML5 meets WPO
 
2012 Employer Health Care Trends
2012 Employer Health Care Trends2012 Employer Health Care Trends
2012 Employer Health Care Trends
 
Html5 apps - GWT oriented
Html5 apps - GWT orientedHtml5 apps - GWT oriented
Html5 apps - GWT oriented
 

Similaire à Google country day_intervento

Websockets - DevFestX May 19, 2012
Websockets - DevFestX May 19, 2012Websockets - DevFestX May 19, 2012
Websockets - DevFestX May 19, 2012
Sameer Segal
 
Introducing MQTT
Introducing MQTTIntroducing MQTT
Introducing MQTT
Andy Piper
 
Basic html5 and javascript
Basic html5 and javascriptBasic html5 and javascript
Basic html5 and javascript
wendy017
 
Speak the Web 15.02.2010
Speak the Web 15.02.2010Speak the Web 15.02.2010
Speak the Web 15.02.2010
Patrick Lauke
 

Similaire à Google country day_intervento (20)

Websockets - DevFestX May 19, 2012
Websockets - DevFestX May 19, 2012Websockets - DevFestX May 19, 2012
Websockets - DevFestX May 19, 2012
 
The WebKit project
The WebKit projectThe WebKit project
The WebKit project
 
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
 
The HTML5 WebSocket API
The HTML5 WebSocket APIThe HTML5 WebSocket API
The HTML5 WebSocket API
 
C++ and UIs: an unorthodox approach
C++ and UIs: an unorthodox approachC++ and UIs: an unorthodox approach
C++ and UIs: an unorthodox approach
 
Messaging for the Internet of Awesome Things
Messaging for the Internet of Awesome ThingsMessaging for the Internet of Awesome Things
Messaging for the Internet of Awesome Things
 
Enhancing Mobile User Experience with WebSocket
Enhancing Mobile User Experience with WebSocketEnhancing Mobile User Experience with WebSocket
Enhancing Mobile User Experience with WebSocket
 
Websocket technology for XPages
Websocket technology for XPagesWebsocket technology for XPages
Websocket technology for XPages
 
Web of Things - Connecting People and Objects on the Web
Web of Things - Connecting People and Objects on the WebWeb of Things - Connecting People and Objects on the Web
Web of Things - Connecting People and Objects on the Web
 
XST - Cross Site Tracing
XST - Cross Site TracingXST - Cross Site Tracing
XST - Cross Site Tracing
 
Going Live! with Comet
Going Live! with CometGoing Live! with Comet
Going Live! with Comet
 
WebSockets Everywhere: the Future Transport Protocol for Everything (Almost)
WebSockets Everywhere: the Future Transport Protocol for Everything (Almost)WebSockets Everywhere: the Future Transport Protocol for Everything (Almost)
WebSockets Everywhere: the Future Transport Protocol for Everything (Almost)
 
Bruce lawson-over-the-air
Bruce lawson-over-the-airBruce lawson-over-the-air
Bruce lawson-over-the-air
 
Nodejs and WebSockets
Nodejs and WebSocketsNodejs and WebSockets
Nodejs and WebSockets
 
Websocket
WebsocketWebsocket
Websocket
 
Introducing MQTT
Introducing MQTTIntroducing MQTT
Introducing MQTT
 
Basic html5 and javascript
Basic html5 and javascriptBasic html5 and javascript
Basic html5 and javascript
 
Socket.io
Socket.ioSocket.io
Socket.io
 
Speak the Web 15.02.2010
Speak the Web 15.02.2010Speak the Web 15.02.2010
Speak the Web 15.02.2010
 
Lecture 6 Web Sockets
Lecture 6   Web SocketsLecture 6   Web Sockets
Lecture 6 Web Sockets
 

Plus de firenze-gtug

Maven from dummies
Maven from dummiesMaven from dummies
Maven from dummies
firenze-gtug
 

Plus de firenze-gtug (20)

Android ndk - ottimizzazione su dispositivi Intel
Android ndk - ottimizzazione su dispositivi IntelAndroid ndk - ottimizzazione su dispositivi Intel
Android ndk - ottimizzazione su dispositivi Intel
 
Gwt kickoff - Alberto Mancini & Francesca Tosi
Gwt kickoff - Alberto Mancini & Francesca TosiGwt kickoff - Alberto Mancini & Francesca Tosi
Gwt kickoff - Alberto Mancini & Francesca Tosi
 
Youtube broadcast live - Massimiliano D'Ambrosio
Youtube broadcast live - Massimiliano D'AmbrosioYoutube broadcast live - Massimiliano D'Ambrosio
Youtube broadcast live - Massimiliano D'Ambrosio
 
Intro BeagleBone Black - Massimiliano D'Ambrosio
Intro BeagleBone Black - Massimiliano D'AmbrosioIntro BeagleBone Black - Massimiliano D'Ambrosio
Intro BeagleBone Black - Massimiliano D'Ambrosio
 
Arduino - Massimiliano D'Ambrosio
Arduino - Massimiliano D'AmbrosioArduino - Massimiliano D'Ambrosio
Arduino - Massimiliano D'Ambrosio
 
Introduzione a GAE - Alessandro Aglietti e Lorenzo Bugiani
Introduzione a GAE - Alessandro Aglietti e Lorenzo BugianiIntroduzione a GAE - Alessandro Aglietti e Lorenzo Bugiani
Introduzione a GAE - Alessandro Aglietti e Lorenzo Bugiani
 
RFID: What & Why - Stefano Coluccini
RFID: What & Why - Stefano ColucciniRFID: What & Why - Stefano Coluccini
RFID: What & Why - Stefano Coluccini
 
GWT - AppDays - (25 aprile 2014, pordenone)
GWT - AppDays - (25 aprile 2014, pordenone)GWT - AppDays - (25 aprile 2014, pordenone)
GWT - AppDays - (25 aprile 2014, pordenone)
 
Presentazione Google App Engine
Presentazione Google App EnginePresentazione Google App Engine
Presentazione Google App Engine
 
Android chat in the cloud
Android chat in the cloudAndroid chat in the cloud
Android chat in the cloud
 
Clean android code
Clean android codeClean android code
Clean android code
 
#Html2Native
#Html2Native#Html2Native
#Html2Native
 
Intel ndk - a few Benchmarks
Intel ndk - a few BenchmarksIntel ndk - a few Benchmarks
Intel ndk - a few Benchmarks
 
EE Incremental Store
EE Incremental StoreEE Incremental Store
EE Incremental Store
 
Programming objects with android
Programming objects with androidProgramming objects with android
Programming objects with android
 
Apertura "Mobile & Embedded" - 13 febbraio 2014
Apertura "Mobile & Embedded" - 13 febbraio 2014Apertura "Mobile & Embedded" - 13 febbraio 2014
Apertura "Mobile & Embedded" - 13 febbraio 2014
 
Maven from dummies
Maven from dummiesMaven from dummies
Maven from dummies
 
Apps fuel oct2012
Apps fuel oct2012Apps fuel oct2012
Apps fuel oct2012
 
Dev fest android application case study
Dev fest android application   case studyDev fest android application   case study
Dev fest android application case study
 
google drive and the google drive sdk
google drive and the google drive sdkgoogle drive and the google drive sdk
google drive and the google drive sdk
 

Dernier

Dernier (20)

Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 

Google country day_intervento

  • 1. Alberto Mancini alberto@jooink.com Francesca Tosi francesca@jooink.com 6 Luglio 2011- Palazzo Corsini - Firenze
  • 2. Target http://www.jooink.com Cercare di capire quanto le applicazioni "web" possono essere interattive ... senza flash ... senza applets ... senza plugins HTML5: WebSockets
  • 3. Rules • multi-user (almeno bi-) • applicazione 'semplice' • grafica banale • GWT • weekend-app (da sviluppare in un paio di giorni)
  • 4. App Simple Sample - PONG
  • 5. WebSocket http://dev.w3.org/html5/websockets/ http://websocket.org/ "... a technology providing for bi- directional, full-duplex communications channels, over a single Transmission Control Protocol (TCP) socket."
  • 6. WebSocket var uri= "ws://...." var ws = new WebSocket(uri); ws.onmessage = function ... [onopen,onclose, onerror] ws.send(msg) HTTPServlet + public WebSocket doWebSocketConnect(HttpServletRequest r,...) interface Websocket { public onOpen(Connection cnt); public onClose(...); } interface Websocket.OnTextmessage { public void onMessage(String msg) } cnt.sendMessage(String msg) 8
  • 7. WebSocket var uri= "ws://...." var ws = new WebSocket(uri); ws.onmessage = function ... [onopen,onclose, onerror] ws.send(msg) HTTPServlet + public WebSocket doWebSocketConnect(HttpServletRequest r,...) interface Websocket { public onOpen(Connection cnt) public onClose(...) } interface Websocket.OnTextmessage { public void onMessage(String msg) } cnt.sendMessage(String msg) 8
  • 8. schema Case 1:
  • 9. schema Case 2:
  • 10. pong play !! :-) jooink1.jooink.com/pong
  • 11. schema Case 3:
  • 12. schema Case 4:
  • 13. That's all folks ! That's all :-) jooink1.jooink.com/pong jooink1.jooink.com/box2dTest