WebSocket Good paper Collection

Source: Internet
Author: User

    1. nginx support for WebSocket, WSS protocol support See official documentation:   http://nginx.org/en/docs/http/websocket.html

      Nginx since Version 1.3 has started to support WebSocket and can do reverse proxy and load balancing for WebSocket applications. The

      WebSocket differs from the HTTP protocol, but the handshake in WebSocket is compatible with the handshake in HTTP, which uses the Upgrade protocol header in HTTP to upgrade the connection from HTTP to WebSocket when the client sends over a   connection:upgrade   Request header, Nginx is not known, so when the Nginx proxy server to intercept a client sent to the   Upgrade   Request, you need to explicitly set  , Connection  ,  , Upgrade   header information, and use 101 (Interchange Protocol) to return the response in the client and proxy server , and a tunnel is established between the backend servers to support WebSocket.

      Of course, it is also important to note that WebSockets is still affected by the Nginx default of 60 seconds of proxy_read_timeout. This means that if you have a program that uses WebSockets but may not send any data for more than 60 seconds, you either need to increase the timeout or implement a ping message to keep in touch. There are additional benefits to using Ping's workaround to find out if the connection was accidentally closed.

    2. WebSocket Protocol: 5 minutes from beginner to proficient: http://www.cnblogs.com/chyingp/p/websocket-deep-in.html
    3. WebSocket Detailed Tutorial: https://www.cnblogs.com/jingmoxukong/p/7755643.html
    4. websocket issues to consider in use: 75810099
    5. springboot using websocket:81002396

WebSocket collection of good text

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.