Nodejs Network Services

Source: Internet
Author: User

This chapter describes the application of network services from the perspective of Nodejs-owned modules:

NET-----> TCP

Dgram to UDP

HTTP-----> HTTP

HTTPS----> HTTPS

From the angle of these four modules, the application of the network in the server is described.

Simulates sending and receiving requests from the server-side and client perspective of creating services.

One of the most beneficial should be WebSocket that chapter, have not heard this agreement, later read this book, asked the next Niang, just know:

This protocol is a new protocol based on HTML5, it supports the server side to create a long connection with the client, do not need to shake hands multiple times, also can implement server-side push function, because it is full-duplex communication mode, so the server can also send a request to the client, the client can also be the corresponding server side at any time. This opens the door to applications that need to be pushed, and the most typical application scenario is the chat room ....

Nodejs Network Services

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.