https://github.com/tharunoptimus/half-duplex-messaging
Half Duplex messaging with TCP/IP POST Requests
https://github.com/tharunoptimus/half-duplex-messaging
express node-fetch
Last synced: 11 days ago
JSON representation
Half Duplex messaging with TCP/IP POST Requests
- Host: GitHub
- URL: https://github.com/tharunoptimus/half-duplex-messaging
- Owner: tharunoptimus
- Created: 2021-09-21T10:08:07.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-21T10:08:11.000Z (over 4 years ago)
- Last Synced: 2025-02-26T14:16:01.105Z (over 1 year ago)
- Topics: express, node-fetch
- Language: JavaScript
- Homepage: https://github.com/tharunoptimus/half-duplex-messaging
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Half Duplex Messaging
## Overview
- This is a fun project similar to the TCP socket programming in Java.
- It is a simple half duplex messaging system.
- The client sends POST requests to server, and server responds with the response which it gets from the console.
- Not EFFICIENT, but it is a fun project.
## Install
- `npm install` to install dependencies
## Usage
### Server
- `npm run server` to start the server
- You will need to expose your port to the outside world.
- Use [Localtunnel](https://localtunnel.github.io/) to make it happen.
- Send your Hostname and Port to the client user.
### Client
- `npm run client` to start the client
- Enter the hostname and port of the server.
- It will send a GET request to the server.
- It will print the response from the server.
- Can begin the Half Duplex Messaging process.
## Dependencies Used
- [Express](https://expressjs.com/) - Node.js web framework
- [node-fetch](https://www.npmjs.com/package/node-fetch) - Node.js HTTP client
### Enjoy 🎉