SlideShare a Scribd company logo
What are
WebShockets
WebSockets represent a long awaited evolution in
client/server web technology.
They allow a long-held single TCP socket
connection to be established between the client
and server which allows for bi-directional, full
duplex, messages to be instantly distributed with
little overhead resulting in a very low latency
connection.
Both the WebSocket API and the
WebSocket protocol are
standardised which means the web
now has an agreed standard for
realtime communication between
Internet clients and servers.
Originally considered a browser
technology, WebSockets are reaching
far beyond just web browsers and are
becoming a cross platform standard for
realtime communication between client
and server
As well as native WebSocket support in
browsers such as Google Chrome,
Firefox, Opera and a prototype Silverlight
to JavaScript bridge implementation for
Internet Explorer, there are now
WebSocket library implementations in
Objective-C, .NET, Ruby, Java, node.js,
ActionScript and many other languages.
(from a developer’s perspective)
The Internet wasn’t built to be all that
dynamic. It was conceived to be a collection of
HyperText Markup Language (HTML) pages
linking to one another to form a conceptual
web of information.
Over time the static resources
increased in number and richer
items, such as images, began to
be part of the web fabric.
Server technologies advanced allowing for
dynamic server pages - pages whose content was
generated based on a query.
Soon the requirement to have more dynamic web
pages lead to the availability of Dynamic
HyperText Markup Language (DHTML) all thanks
to JavaScript (let’s pretend VBScript never
existed). Over the following years we saw cross
frame communication in an attempt to avoid page
reloads followed by HTTP Polling within frames.
Things started to get interesting with the introduction
of LiveConnect, then the forever frame technique, and
finally, thanks to Microsoft, we ended up with the
XMLHttpRequest object and therefore Asynchronous
JavaScript and XML (AJAX).
In turn, AJAX madeXHR Long-Polling and XHR
Streaming possible. But none of these solutions offered a
truly standardised cross browser solution to realtime bi-
directional communication between a server and a client.
Introduction of WebSockets
Why WebSockets are a game-changer?
Finally,
WebSockets represent a standard for bi-
directional realtime communication
between servers and clients.
Firstly in web browsers, but ultimately
between any server and any client.
Why WebSockets are a game-changer?
The standards first approach means that
as developers we can finally create
functionality that works consistently
across multiple platforms.
Connection limitations are no longer a
problem since WebSockets represent a
single TCP socket connection.
Why WebSockets are a game-changer?
Cross domain communication has been
considered from day one and is dealt with
within the connection handshake.
This means that services such as Pusher can
easily use them when offering a massively
scalable realtime platform that can be used by
any website, web, desktop or mobile
application.
Introduction of WebSockets
WebSockets vs AJAX
WebSockets don’t make AJAX obsolete
but they do supersede Comet (HTTP
Long-polling/HTTP Streaming) as the
solution of choice for true realtime
functionality.
AJAX should still be used for
making short-lived web service
calls, and if we eventually see a
good uptake in CORS supporting
web services, it will get even more
useful.
WebSockets vs AJAX
WebSockets should now be the go
to standard for realtime
functionality since they offer low
latency bi-directional
communication over a single
connection.
WebSockets vs AJAX
Even if a web browser doesn’t natively
support the WebSocket object there are
polyfill fallback options which all but
guarantee any web browser can actually
establish a WebSocket connection.
WebSockets vs AJAX
Created By: Ashish Kumar
Source: http://pusher.com/websockets

More Related Content

What's hot (19)

PPTX
Windows communication foundation ii
Swamy Gowtham
 
PPTX
Server interaction with web socket protocol
Rahul Rai
 
PPTX
Multi-Process JavaScript Architectures
Mark Trostler
 
PPT
Osdc - Meteor Intorduction
Ayush Narula
 
PPT
Presentation for a Media Company
Mark Goetsch
 
PPT
zigbee
mahamad juber
 
PDF
Server-Sent Events in Action
Andrei Rusu
 
PDF
dotCloud presents Stack.io
dotCloud
 
PPTX
Websocket
Masudul Haque
 
PPTX
Node Session - 3
Bhavin Shah
 
PPTX
WCF 35
João Victorino
 
PPT
Being mean at hackathons
Devang Paliwal
 
PPTX
Web Sockets
Paul Fryer
 
PDF
Rails 4 & server sent events
Piotr Karbownik
 
PPTX
Wcf and its features
Gulshan Sam
 
PPTX
Windows communication foundation (part1) jaliya udagedara
Jaliya Udagedara
 
PPTX
Large scale web socket system with AWS and Web socket
Le Kien Truc
 
PDF
WEBBOX
SOCIAM Project
 
PDF
Why do you need REST
Mayank Srivastava
 
Windows communication foundation ii
Swamy Gowtham
 
Server interaction with web socket protocol
Rahul Rai
 
Multi-Process JavaScript Architectures
Mark Trostler
 
Osdc - Meteor Intorduction
Ayush Narula
 
Presentation for a Media Company
Mark Goetsch
 
Server-Sent Events in Action
Andrei Rusu
 
dotCloud presents Stack.io
dotCloud
 
Websocket
Masudul Haque
 
Node Session - 3
Bhavin Shah
 
Being mean at hackathons
Devang Paliwal
 
Web Sockets
Paul Fryer
 
Rails 4 & server sent events
Piotr Karbownik
 
Wcf and its features
Gulshan Sam
 
Windows communication foundation (part1) jaliya udagedara
Jaliya Udagedara
 
Large scale web socket system with AWS and Web socket
Le Kien Truc
 
Why do you need REST
Mayank Srivastava
 

Similar to Introduction of WebSockets (20)

PDF
Dev con kolkata 2012 websockets
SANKARSAN BOSE
 
PDF
What is a WebSocket? Real-Time Communication in Applications
Inexture Solutions
 
PPTX
WebSockets-Revolutionizing-Real-Time-Communication.pptx
YasserLina
 
PPTX
ClientServer Websocket.pptx
MaxamedSheekhAmiin
 
PPTX
Websockets: Pushing the web forward
Mark Roden
 
PPTX
Intro to WebSockets
Gaurav Oberoi
 
PPTX
Training Webinar: Enterprise application performance with server push technol...
OutSystems
 
PPTX
Intro to Web Sockets
Jim Gourgoutis
 
PPTX
Web Sockets are not Just for Web Browsers
cjmyers
 
PDF
Programming WebSockets - OSCON 2010
sullis
 
PPTX
WebSockets On Fire
Jef Claes
 
PPTX
Web sockets - Pentesting
Vandana Verma
 
ODP
ISM APAC TechTalk - WebSockets Presentation
Dimuthu Nilanka
 
PDF
IRJET- An Overview of Web Sockets: The Future of Real-Time Communication
IRJET Journal
 
PPTX
WebSockets in JEE 7
Shahzad Badar
 
PDF
WebSockets: The Current State of the Most Valuable HTML5 API for Java Developers
Viktor Gamov
 
PDF
DevCon 5 (July 2013) - WebSockets
Crocodile WebRTC SDK and Cloud Signalling Network
 
PPTX
Webinar slides "Building Real-Time Collaborative Web Applications"
Sachin Katariya
 
PDF
Building Next Generation Real-Time Web Applications using Websockets
Naresh Chintalcheru
 
PDF
Decoding real time web communication
AMiT JAiN
 
Dev con kolkata 2012 websockets
SANKARSAN BOSE
 
What is a WebSocket? Real-Time Communication in Applications
Inexture Solutions
 
WebSockets-Revolutionizing-Real-Time-Communication.pptx
YasserLina
 
ClientServer Websocket.pptx
MaxamedSheekhAmiin
 
Websockets: Pushing the web forward
Mark Roden
 
Intro to WebSockets
Gaurav Oberoi
 
Training Webinar: Enterprise application performance with server push technol...
OutSystems
 
Intro to Web Sockets
Jim Gourgoutis
 
Web Sockets are not Just for Web Browsers
cjmyers
 
Programming WebSockets - OSCON 2010
sullis
 
WebSockets On Fire
Jef Claes
 
Web sockets - Pentesting
Vandana Verma
 
ISM APAC TechTalk - WebSockets Presentation
Dimuthu Nilanka
 
IRJET- An Overview of Web Sockets: The Future of Real-Time Communication
IRJET Journal
 
WebSockets in JEE 7
Shahzad Badar
 
WebSockets: The Current State of the Most Valuable HTML5 API for Java Developers
Viktor Gamov
 
DevCon 5 (July 2013) - WebSockets
Crocodile WebRTC SDK and Cloud Signalling Network
 
Webinar slides "Building Real-Time Collaborative Web Applications"
Sachin Katariya
 
Building Next Generation Real-Time Web Applications using Websockets
Naresh Chintalcheru
 
Decoding real time web communication
AMiT JAiN
 
Ad

Recently uploaded (20)

PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Ad

Introduction of WebSockets

  • 2. WebShockets WebSockets represent a long awaited evolution in client/server web technology. They allow a long-held single TCP socket connection to be established between the client and server which allows for bi-directional, full duplex, messages to be instantly distributed with little overhead resulting in a very low latency connection.
  • 3. Both the WebSocket API and the WebSocket protocol are standardised which means the web now has an agreed standard for realtime communication between Internet clients and servers.
  • 4. Originally considered a browser technology, WebSockets are reaching far beyond just web browsers and are becoming a cross platform standard for realtime communication between client and server
  • 5. As well as native WebSocket support in browsers such as Google Chrome, Firefox, Opera and a prototype Silverlight to JavaScript bridge implementation for Internet Explorer, there are now WebSocket library implementations in Objective-C, .NET, Ruby, Java, node.js, ActionScript and many other languages.
  • 6. (from a developer’s perspective)
  • 7. The Internet wasn’t built to be all that dynamic. It was conceived to be a collection of HyperText Markup Language (HTML) pages linking to one another to form a conceptual web of information.
  • 8. Over time the static resources increased in number and richer items, such as images, began to be part of the web fabric. Server technologies advanced allowing for dynamic server pages - pages whose content was generated based on a query.
  • 9. Soon the requirement to have more dynamic web pages lead to the availability of Dynamic HyperText Markup Language (DHTML) all thanks to JavaScript (let’s pretend VBScript never existed). Over the following years we saw cross frame communication in an attempt to avoid page reloads followed by HTTP Polling within frames.
  • 10. Things started to get interesting with the introduction of LiveConnect, then the forever frame technique, and finally, thanks to Microsoft, we ended up with the XMLHttpRequest object and therefore Asynchronous JavaScript and XML (AJAX). In turn, AJAX madeXHR Long-Polling and XHR Streaming possible. But none of these solutions offered a truly standardised cross browser solution to realtime bi- directional communication between a server and a client.
  • 12. Why WebSockets are a game-changer? Finally, WebSockets represent a standard for bi- directional realtime communication between servers and clients. Firstly in web browsers, but ultimately between any server and any client.
  • 13. Why WebSockets are a game-changer? The standards first approach means that as developers we can finally create functionality that works consistently across multiple platforms. Connection limitations are no longer a problem since WebSockets represent a single TCP socket connection.
  • 14. Why WebSockets are a game-changer? Cross domain communication has been considered from day one and is dealt with within the connection handshake. This means that services such as Pusher can easily use them when offering a massively scalable realtime platform that can be used by any website, web, desktop or mobile application.
  • 16. WebSockets vs AJAX WebSockets don’t make AJAX obsolete but they do supersede Comet (HTTP Long-polling/HTTP Streaming) as the solution of choice for true realtime functionality.
  • 17. AJAX should still be used for making short-lived web service calls, and if we eventually see a good uptake in CORS supporting web services, it will get even more useful. WebSockets vs AJAX
  • 18. WebSockets should now be the go to standard for realtime functionality since they offer low latency bi-directional communication over a single connection. WebSockets vs AJAX
  • 19. Even if a web browser doesn’t natively support the WebSocket object there are polyfill fallback options which all but guarantee any web browser can actually establish a WebSocket connection. WebSockets vs AJAX
  • 20. Created By: Ashish Kumar Source: http://pusher.com/websockets