WebSocket: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 6: | Line 6: | ||
=Overview= | =Overview= | ||
WebSocket is a protocol that enables two-way communication between a client and a remote host. The security model used during communication is the origin-based security model commonly used by web browsers. The protocol consists of an opening handshake, followed by basic message framing in top of a TCP connection. The goal of this technology is to provide a two-way communication mechanism for browser-based applications that does not rely on [[Two-way Communication over HTTP#Overview|opening multiple HTTP connections]]. | WebSocket is a protocol that enables two-way communication between a client and a remote host. The security model used during communication is the origin-based security model commonly used by web browsers. The protocol consists of an opening handshake, followed by basic message framing in top of a TCP connection. The goal of this technology is to provide a two-way communication mechanism for browser-based applications that does not rely on [[Two-way Communication over HTTP#Overview|opening multiple HTTP connections]]: the underlying TCP connection is used for two-way communication. |
Revision as of 20:00, 25 April 2018
External
- The WebSocket Protocol http://www.ietf.org/rfc/rfc6455.txt
- JSR 356 Java API for WebSocket https://jcp.org/en/jsr/detail?id=356
Overview
WebSocket is a protocol that enables two-way communication between a client and a remote host. The security model used during communication is the origin-based security model commonly used by web browsers. The protocol consists of an opening handshake, followed by basic message framing in top of a TCP connection. The goal of this technology is to provide a two-way communication mechanism for browser-based applications that does not rely on opening multiple HTTP connections: the underlying TCP connection is used for two-way communication.