0
Alberto Mancini                              alberto@jooink.com                              Francesca Tosi               ...
Target                              http://www.jooink.com         Cercare di capire quanto le applicazioni         "web" p...
Rules        • multi-user (almeno bi-)        • applicazione semplice        • grafica banale        • GWT        • weeken...
App      Simple Sample - PONG
WebSocket            http://dev.w3.org/html5/websockets/            http://websocket.org/                     "... a techn...
WebSocket             var uri= "ws://...."                      var ws = new WebSocket(uri);                      ws.onmes...
WebSocket             var uri= "ws://...."                      var ws = new WebSocket(uri);                      ws.onmes...
schema   Case 1:
schema   Case 2:
pong       play !! :-)       jooink1.jooink.com/pong
schema   Case 3:
schema   Case 4:
Thats allfolks !                         Thats all                           :-)             jooink1.jooink.com/pong      ...
Upcoming SlideShare
Loading in...5
×

Google country day_intervento

1,502

Published on

Published in: Technology, News & Politics
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,502
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Google country day_intervento"

  1. 1. Alberto Mancini alberto@jooink.com Francesca Tosi francesca@jooink.com6 Luglio 2011- Palazzo Corsini - Firenze
  2. 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. 3. Rules • multi-user (almeno bi-) • applicazione semplice • grafica banale • GWT • weekend-app (da sviluppare in un paio di giorni)
  4. 4. App Simple Sample - PONG
  5. 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. 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. 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. 8. schema Case 1:
  9. 9. schema Case 2:
  10. 10. pong play !! :-) jooink1.jooink.com/pong
  11. 11. schema Case 3:
  12. 12. schema Case 4:
  13. 13. Thats allfolks ! Thats all :-) jooink1.jooink.com/pong jooink1.jooink.com/box2dTest
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×