Application Protocol - Web Socket
Application Protocol - Web Socket
Introduction
• What else?
• Designed for interactive Web Applications
• Open for all kind of stationary and mobile browser
based and native apps.
• Not just a protocol, but a new paradigm
Request/Response Real-Time Comm.
Web Sockets – Concept
The Concept:
• Framework vs. Client/Server
• 3rd Party Engines and Servers
• Message Routing, Stream, Send, Broadcast, Events,
Channels
• Tokens and Plug-ins
• Listeners and Apps
• Filters and Encryption
Web Sockets
• Works when:
• server and/or client need to send data often
• browser support for WebSocket can be relied upon or
fallbacks can be used
• Performance
• WebSocket makes real-time communication much more
efficient.
• Simplicity
• WebSocket makes communication between a client and
server over the web much simpler.
• Standards
• WebSocket is an underlying network protocol that enables
you to build other standard protocols on top of it.
• HTML5
• WebSocket is part of an effort to provide advanced
capabilities to HTML5 applications in order to compete with
other platforms.
Advantages and Disadvantages WebSocket
Advantages:
• Supports Duplex communication
• Faster than HTTP
• Increased Client and Server Communication Efficiency
• Replacement of HTTP
• Uses TCP
Disadvantages:
• Browser must be fully HTML5 compliant
• Takes over the communications protocol between the client
and the server for a particular connection.
Applications of Websockets
• Social feeds
• Multiplayer games
• Collaborative editing/coding
• Click stream data