Modul Bersih Node.js

Modul Terpasang


Definisi dan Penggunaan

Modul Net menyediakan cara untuk membuat server TCP dan klien TCP.


Sintaksis

Sintaks untuk menyertakan modul Net dalam aplikasi Anda:

var net = require('net');

Properti dan Metode Bersih

Method Description
connect() Creates a new connection to the server, and returns a new Socket
createConnection() Creates a new connection to the server, and returns a new Socket
createServer() Creates a new server
isIP Checks if the specified value is an IP address
isIPv4 Checks if the specified value is an IPv4 address
isIPv6 Checks if the specified value is an IPv6 address

Modul Terpasang