Your SlideShare is downloading. ×
Google country day_intervento
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Google country day_intervento

1,462
views

Published on

Published in: Technology, News & Politics

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

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

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Alberto Mancini alberto@jooink.com Francesca Tosi francesca@jooink.com6 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. Thats allfolks ! Thats all :-) jooink1.jooink.com/pong jooink1.jooink.com/box2dTest