Coder Social home page Coder Social logo

Comments (9)

zemuldo avatar zemuldo commented on July 20, 2024

This library just does message manipulation which can be anything from validation, conversion, safe logging, and metadata reading, etc.

As for the communication between your client and server, that is up to you. There is an example in the repo here. You can check that out.

The communication between interfaces which in most cases is TCP/IP via Socket, the data is exchanged in async mode, Therefore you cant keep the connection alive because the socket does that. As long as the socket is alive, the connection is alive. To persist a session like comms within that connection, you can mark your messages with a static header or use any special field in ISO 8583 specification to store data that represents a session that needs keep alive.

I hope this answers your question because apart from this, there is not much I can say as the conn between your client and your server is out of scope for this library. It just does message parsing/conversion between them.

from iso_8583.

rakeshfern avatar rakeshfern commented on July 20, 2024

Thanks am looking for concurrent request and response from server and client for iso message processing using node js that is the major purpose of iso message parsing only message conversion will not help.

from iso_8583.

zemuldo avatar zemuldo commented on July 20, 2024

What you are looking for is not easy to include in a library. Concurrency should be something to implement on your application level. Nodejs does not guarantee concurrency without clustering or task spawning.

So unless you are suggesting we implement concurrent tasks in the library itself and I don't think its a good idea.

Would provisioning async/promise-based API provide you with 'concurrency'?

from iso_8583.

rakeshfern avatar rakeshfern commented on July 20, 2024

i am looking to achieve this in node js itself without going for any specific language in application level. The scenario was this tcp client should wait for the response from server once the client write some iso message to the server and server keep on sending echo message iso sign on response to the client and the client writes back to server and server responds with echo message full duplex transmission with single socket channel this could be achieved in node js ?

from iso_8583.

zemuldo avatar zemuldo commented on July 20, 2024

Please check the example. There is an implementation using event emitter module and echo messages between server and client exchanging 800 network message type per few seconds.

As for full duplex comm, sockets are full duplex by default (how i see them). I am sure if you check that example you will find what you are looking for.

from iso_8583.

rakeshfern avatar rakeshfern commented on July 20, 2024

Thanks let me check .Does it keep on echo messages between client and server.Suppose a signon request coming from server and signon request acknowledgement sent by the client and then a signon response comes from the server and the client acknowdges the signon response and send again back to the server.

from iso_8583.

zemuldo avatar zemuldo commented on July 20, 2024

All this can be done once you have an authentication mechanism between the client and the server. Again out of scope for this library except exchanging the auth data. You can tweak the example to have echo messages exchange auth data. It's easy to manage sessions in memory because a socket exists with your app in memory.

from iso_8583.

zemuldo avatar zemuldo commented on July 20, 2024

Closing this issue because of no activity.

from iso_8583.

zemuldo avatar zemuldo commented on July 20, 2024

If there is something you still need, you can reopen or create a new one 😄

from iso_8583.

Related Issues (20)

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.