Skip to content

This project is a simple example which shows communication between a node.js TCP server and client.

Notifications You must be signed in to change notification settings

rezahazegh/nodejs-tcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Simple Node.js TCP Server and Client

A Lot of common web protocols include http, ftp, websockets and so on use TCP. So, it's good to have basic understanding of how TCP works.

This project is a simple example which shows communication between a TCP server and client.

Server

In this example, the server accepts connections and store all connections. Then, every time receive data it sends the data to all connected clients.

Client

In this example, the client connects to the server and send a message and then closes the connection.

About

This project is a simple example which shows communication between a node.js TCP server and client.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published