Web Communication
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Web Communication

on

  • 597 views

Web Messaging, Web Workers, Server Sent Events, Web Sockets

Web Messaging, Web Workers, Server Sent Events, Web Sockets

Statistics

Views

Total Views
597
Views on SlideShare
593
Embed Views
4

Actions

Likes
0
Downloads
4
Comments
0

2 Embeds 4

https://www.linkedin.com 3
http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Web Communication Presentation Transcript

  • 1. Web Communication adrian.olaru@1and1.ro
  • 2. Connectivity
  • 3. Web Messaging Web WorkersServer Sent Events Web Sockets
  • 4. The way of the force
  • 5. Sending complex data
  • 6. Don’t trust client e.dataAlways check e.origin
  • 7. Web Messaging allows documents from different domains tocommunicate with each other in a secure way
  • 8. Browser Support* * source: http://caniuse.com 5.0+ 3.0+ 8.0 4.0+ 10.1+
  • 9. Use Casesportalswidgetsadstraffic counters
  • 10. Web Workersrun JavaScript in parallel on a web page, without blocking the user interface
  • 11. Browser Support* * source: http://caniuse.com 5.0+ 3.5+ 4.0+ 10.6+
  • 12. Notescan’t access parent & it’s DOM‘this’ == current workercan use XHR, SSE or WebSocketcan importScripts(‘script.js’)can use other workerscan use timers (setTimeout, setInterval)
  • 13. Server Sent Eventspush data from the server to the client over HTTP
  • 14. Browser Support* * source: http://caniuse.com 6.0+ 4.0 5.0 11
  • 15. Use Casessubscribe to live scorereal time pollsbidding updates for actionsstock quoteslive news
  • 16. Web Socketsa bi-directional connection between the server and the client
  • 17. Browser Support* * source: http://caniuse.com 5.0+ 4.0 * 5.0 11 * * deactivated by default
  • 18. Notesfull duplex communicationremoves the overhead (only 2 bytes)dramatically reduces complexity
  • 19. Use Casesonline chatonline gamesrealtime geolocationpackage tracking
  • 20. Demoshttp://github.com/adrianolaru/webcom
  • 21. Danke