WebSockets Tutorial (Tutorial i) ———— WebSockets introduction

Source: Internet
Author: User
Tags rfc

I. Introduction of WebSockets

in a literal sense, a handshake can be defined as two people holding and shaking hands, symbolizing greetings, congratulations, consents or goodbyes. in Computer science, a handshake is the process of ensuring that the server synchronizes with the client. Handshake is the basic concept of the Web socket protocol.

Shows the server handshake with various clients:

Web Sockets-Definitions

A web socket is defined as two-way communication between a server and a client, which means that both parties communicate and exchange data simultaneously.

the key point of Web sockets is true Concurrency and the Performance Optimization , resulting in a more sensitive and richer Web application.

description of the Web socket protocol

the protocol defines full-duplex communication from the beginning. Web sockets take a big step forward by bringing desktop-rich features into the Web browser. It represents an evolution that has been around for a long time in client/server Web technology.

The main features of the network sockets are as follows:

    • The Web sockets protocol is being standardized, which means that with the help of this protocol, real-time communication between the Web server and the client is possible.

    • Web sockets are being transformed into cross-platform standards for real-time communication between clients and servers.

    • This standard allows for new applications. The business of real-time Web applications can speed up with this technology.

    • The biggest advantage of a WEB socket is that it provides two-way communication (full duplex) through a single TCP connection.

website

HTTP has its own set of patterns, such as HTTP and HTTPS. the Web socket protocol also has a similar pattern defined in its URL pattern.

Displays the Web Socket URL in the token.

Browser Support

the latest specification for the WEB socket protocol is defined as RFC 6455 -A proposed standard.

RFC 6455 supported by various browsers such as Internet Explorer,mozilla Firefox,google Chrome,safari and opera.

WebSockets Tutorial (Tutorial i) ———— WebSockets introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.