Coder Social home page Coder Social logo

ghassenelkamel / nodejs-message-sender Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.54 MB

This GitHub project enables the construction and transmission of telegram messages via TCP/IP using Node.js. The `server.js` file manages server-side communication, while `app.js` constructs messages.

JavaScript 100.00%

nodejs-message-sender's Introduction

NodeJS Telegram Message Sender

This Node.js application facilitates the construction and transmission of telegram messages over TCP/IP. It consists of two main files: app.js and server.js.

Overview

The server.js file acts as a receiver for telegram messages over TCP/IP. It can decode received messages. On the other hand, the app.js file constructs telegram messages according to a specified format. Users can choose to encrypt/decrypt these messages using XOR encryption .

Encryption and decryption are optional features that users can enable as needed.

Installation

  1. Clone the repository:

    git clone https://github.com/ghassenelkamel/NodeJS-Message-Sender.git
  2. Navigate to the project directory:

    cd NodeJS-Message-Sender
  3. Install dependencies:

    npm install

Usage

  1. Run the server:

    node server.js

    The server will start listening for incoming telegram messages.

  2. Send a message:

    node app.js MCR 123456789012345 12345 100 25 100

    Replace the arguments with the desired telegram data. The format is as follows:

    node app.js

  • <Identifier>: Fixed to "MCR"
  • <Distance>: 64-bit integer in millimeters
  • <Magnitude>: 32-bit unsigned integer
  • <Phase>: 8-bit integer
  • <Temperature>: 32-bit integer in Celsius

Demonstration Video

video.mp4

Contributors

License

This project is licensed under the MIT License.

nodejs-message-sender's People

Contributors

ghassenelkamel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.