A brief discussion on WebSockets introduction and core architecture design

巴扎黑
Release: 2017-06-15 10:09:01
Original
1431 people have browsed it

The HTML5 WebSockets specification defines an API that allows web pages to communicate with remote hosts in two directions using the WebSockets protocol. Introduces the WebSocket interface and defines a full-duplex communication channel over a socket on the network. HTML5 WebSockets offer a huge reduction in unnecessary network traffic and latency without the inability to scale polling and long polling solutions which are used to simulate a full duplex connection by maintaining two connections. HTML5 WebSockets account for network hazards such as proxies and firewalls, enable streaming over any connection, and are able to support upstream and downstream communications on a single connection. HTML5 WebSockets-based application servers reduce the burden and allow existing machines to support more concurrency. connect. The figure below shows a basic WebSocket-based structure, in which the browser uses a full-duplex WebSocket connection to communicate directly with the remote host. Applications typically use long polling for basic line defense firewalls and proxies. The technology is effective, but not suitable for application sub-500

1. HTML5 Practical Combat and Analysis of WebSockets Introduction

A brief discussion on WebSockets introduction and core architecture design

Introduction: The HTML5 WebSockets specification defines an API that allows web pages to communicate with remote hosts in two directions using the WebSockets protocol. Introduces the WebSocket interface and defines a full-duplex communication channel over a socket on the network. Html5 WebSockets provide a huge reduction in unnecessary network traffic and latency without the climb-polling and long-polling solutions being used to simulate a full-duplex connection by maintaining two connections.

【Related Q&A recommendations】:

The above is the detailed content of A brief discussion on WebSockets introduction and core architecture design. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template