Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

BartekCK/net-tcp-communicator

Repository files navigation

Net-tcp-communicator

Server app for TCP connections.

App is like a chat for connected clients. When new client come in, server create random Id and username for identification. If user write a message and send it (by enter click), message will be sent to all hosts connected to server at this time.
Application use Node.js net module for this kind of connections.

Example

In example below I use netcat tool and treat it as a single client. example

Command for client connect

nc localhost 8080

How to run

You can run app on your host by Node.js and npm or use docker-compose. Application will expose on 8080 port.

Run by Node.js and npm

In root file use commands

npm install
npm start

Run by docker-compose

docker-compose up

Requirements

  • Node.js >= 10.0
  • npm >= 6.0

About

Chat app for TCP connections

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published