Code Monkey home page Code Monkey logo

iso8583-typescript-poc's Introduction

ISO8583 Server and Parser

This code shows you how to run an ISO8583 server using Typescript.

How it works

The way this server works is it opens a socket port that listens for incoming ISO8583 messages. If you're going to deploy this, make sure to run this as a server (VM) or a container.

Prerequisites

Must have Typescript and ts-node installed

How to run the Server

Run iso8583_server.ts

Command: ts-node iso8583_server.ts

Expected Response:

ISO 8583 server started and listening on port 1234

At this point, the ISO8583 server is waiting for connections.

How to send test data to Server

Run iso8583_sender.ts

Command: ts-node iso8583_sender.ts

Expected Response:

Connected to the server
Received message from server: ISO8583_RESPONSE
Connection closed

You can edit the response in the iso8583_server.ts

How to test the parser

Run iso8583_parser.ts

Command: ts-node iso8583_parser.ts

Expected Response:

{
  "34": {
    "id": "34",
    "length": 56,
    "value": "78901234567890123456789"
  },
  "MTI": {
    "id": "MTI",
    "length": 4,
    "value": "ISO0"
  },
  "Primary Bitmap": {
    "id": "Primary Bitmap",
    "length": 16,
    "value": "150000500200B238"
  },
  "Secondary Bitmap 1.25": {
    "id": "Secondary Bitmap 1.25",
    "length": 16,
    "value": "800128A180180000"
  },
  "00": {
    "id": "00",
    "length": 1,
    "value": "2"
  }
}

iso8583-typescript-poc's People

Watchers

Louie Cubero 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.