Igor Askarov

Results 22 comments of Igor Askarov

Hi! What do you mean by "managing"? A callback function?

Well, made an improvement. Two new methods to mind: 1) Before the whole packet is packed: https://github.com/juks/iso-8583-socket-queue/blob/0ceaa81efcce51536f41a1b4cf12702f21e3a345/lib/iso8583/lib/packager/smartVista.js#L440 2) Before each field is packed: https://github.com/juks/iso-8583-socket-queue/blob/0ceaa81efcce51536f41a1b4cf12702f21e3a345/lib/iso8583/lib/packager/smartVista.js#L114

You should do like so for the field definition: ``` '55': { length: 255, name: 'EMV Data', type: 'll-bin-char', alias: '', beforePack: function(fieldValue) { // Work with tags (TLV) values...

Unfortunatelly, there is no tag layer abstraction inside the beforePack right now. So what you get there is entire field 55 value, that you need to break into parts and...

I mean you have _fieldValue_ variable there, representing the field 55 value. So to alter the EMV tags you need to implement it in this method.

Unfortunately this is impossible to implement in the current application design. There also has to be some kind of routing rules which I have no idea about. You can just...

There is testRealLife parameter. If set to one then echo server will randomly close connection abruptly or send "garbage" responses. Made some refactoring changes: there were different levels before, but...

For the sake of ease you can run two instances of SQ: one as an echo-server, second to run the test clients. Server: `node socketQueue.js --upstreamHost=localhost --upstreamPort=5555 --listenPort=2014 --vv --echoServerPort=5555...

Notice, I made the testRealLife parameter to be boolean, so please update your code again.

Not sure I got your idea entirely, but the test clients themselves are meant as functional test for the application before new release gets published. The testRealLife makes tests more...