jspurefix 1.4.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/appveyor.yml +3 -0
- package/data/session/certs/ca/ca.crt +33 -0
- package/data/session/certs/ca/ca.key +54 -0
- package/data/session/certs/client/client.crt +31 -0
- package/data/session/certs/client/client.key +51 -0
- package/data/session/certs/server/server.crt +31 -0
- package/data/session/certs/server/server.key +51 -0
- package/dist/a-session-msg-factory.d.ts +0 -0
- package/dist/a-session-msg-factory.js +1 -0
- package/dist/a-session-msg-factory.js.map +1 -0
- package/dist/ascii-encoder.test.d.ts +0 -0
- package/dist/ascii-encoder.test.js +1 -0
- package/dist/ascii-encoder.test.js.map +1 -0
- package/dist/ascii-parser.test.d.ts +0 -0
- package/dist/ascii-parser.test.js +1 -0
- package/dist/ascii-parser.test.js.map +1 -0
- package/dist/ascii-segment.test.d.ts +0 -0
- package/dist/ascii-segment.test.js +1 -0
- package/dist/ascii-segment.test.js.map +1 -0
- package/dist/ascii-store-replay.test.d.ts +0 -0
- package/dist/ascii-store-replay.test.js +1 -0
- package/dist/ascii-store-replay.test.js.map +1 -0
- package/dist/ascii-tag-pos.test.d.ts +0 -0
- package/dist/ascii-tag-pos.test.js +1 -0
- package/dist/ascii-tag-pos.test.js.map +1 -0
- package/dist/buffer/{ascii-chars.d.ts → ascii/ascii-chars.d.ts} +0 -0
- package/dist/buffer/{ascii-chars.js → ascii/ascii-chars.js} +0 -0
- package/dist/buffer/ascii/ascii-chars.js.map +1 -0
- package/dist/buffer/ascii/ascii-encoder.d.ts +4 -2
- package/dist/buffer/ascii/ascii-encoder.js +54 -32
- package/dist/buffer/ascii/ascii-encoder.js.map +1 -1
- package/dist/buffer/ascii/ascii-parser-state.d.ts +3 -10
- package/dist/buffer/ascii/ascii-parser-state.js +37 -25
- package/dist/buffer/ascii/ascii-parser-state.js.map +1 -1
- package/dist/buffer/ascii/ascii-parser.d.ts +7 -7
- package/dist/buffer/ascii/ascii-parser.js +50 -24
- package/dist/buffer/ascii/ascii-parser.js.map +1 -1
- package/dist/buffer/ascii/ascii-segment-parser.d.ts +2 -2
- package/dist/buffer/ascii/ascii-segment-parser.js +34 -13
- package/dist/buffer/ascii/ascii-segment-parser.js.map +1 -1
- package/dist/buffer/ascii/ascii-view.d.ts +2 -4
- package/dist/buffer/ascii/ascii-view.js +11 -15
- package/dist/buffer/ascii/ascii-view.js.map +1 -1
- package/dist/buffer/ascii/index.d.ts +1 -0
- package/dist/buffer/ascii/index.js +1 -0
- package/dist/buffer/ascii/index.js.map +1 -1
- package/dist/buffer/ascii/parse-state.d.ts +8 -0
- package/dist/buffer/ascii/parse-state.js +13 -0
- package/dist/buffer/ascii/parse-state.js.map +1 -0
- package/dist/buffer/ascii/time-formatter.js +1 -1
- package/dist/buffer/ascii/time-formatter.js.map +1 -1
- package/dist/buffer/elastic-buffer.js +29 -8
- package/dist/buffer/elastic-buffer.js.map +1 -1
- package/dist/buffer/encode-proxy.d.ts +1 -1
- package/dist/buffer/encode-proxy.js +16 -17
- package/dist/buffer/encode-proxy.js.map +1 -1
- package/dist/buffer/fixml/fixml-encoder.d.ts +2 -1
- package/dist/buffer/fixml/fixml-encoder.js +43 -20
- package/dist/buffer/fixml/fixml-encoder.js.map +1 -1
- package/dist/buffer/fixml/fixml-parser.js +47 -24
- package/dist/buffer/fixml/fixml-parser.js.map +1 -1
- package/dist/buffer/fixml/fixml-view.d.ts +2 -4
- package/dist/buffer/fixml/fixml-view.js +13 -16
- package/dist/buffer/fixml/fixml-view.js.map +1 -1
- package/dist/buffer/fixml/populated-attributes.d.ts +5 -0
- package/dist/buffer/fixml/populated-attributes.js +3 -0
- package/dist/buffer/fixml/populated-attributes.js.map +1 -0
- package/dist/buffer/index.d.ts +4 -8
- package/dist/buffer/index.js +4 -8
- package/dist/buffer/index.js.map +1 -1
- package/dist/buffer/msg-encoder.d.ts +2 -1
- package/dist/buffer/msg-encoder.js.map +1 -1
- package/dist/buffer/msg-view.d.ts +3 -5
- package/dist/buffer/msg-view.js +8 -5
- package/dist/buffer/msg-view.js.map +1 -1
- package/dist/buffer/segment/segment-description.d.ts +26 -0
- package/dist/buffer/segment/segment-description.js +72 -0
- package/dist/buffer/segment/segment-description.js.map +1 -0
- package/dist/buffer/segment/segment-summary.d.ts +13 -0
- package/dist/buffer/segment/segment-summary.js +20 -0
- package/dist/buffer/segment/segment-summary.js.map +1 -0
- package/dist/buffer/segment/segment-type.d.ts +8 -0
- package/dist/buffer/segment/segment-type.js +13 -0
- package/dist/buffer/segment/segment-type.js.map +1 -0
- package/dist/buffer/segment-description.d.ts +2 -9
- package/dist/buffer/segment-description.js +5 -13
- package/dist/buffer/segment-description.js.map +1 -1
- package/dist/buffer/segment-type.d.ts +8 -0
- package/dist/buffer/segment-type.js +13 -0
- package/dist/buffer/segment-type.js.map +1 -0
- package/dist/buffer/structure.d.ts +3 -3
- package/dist/buffer/structure.js +1 -1
- package/dist/buffer/structure.js.map +1 -1
- package/dist/buffer/tag/tag-pos.d.ts +12 -0
- package/dist/buffer/tag/tag-pos.js +55 -0
- package/dist/buffer/tag/tag-pos.js.map +1 -0
- package/dist/buffer/tag/tag-type.d.ts +13 -0
- package/dist/buffer/tag/tag-type.js +18 -0
- package/dist/buffer/tag/tag-type.js.map +1 -0
- package/dist/buffer/tag/tags.d.ts +21 -0
- package/dist/buffer/tag/tags.js +122 -0
- package/dist/buffer/tag/tags.js.map +1 -0
- package/dist/buffer/tag-type.d.ts +13 -0
- package/dist/buffer/tag-type.js +18 -0
- package/dist/buffer/tag-type.js.map +1 -0
- package/dist/buffer/tags.d.ts +3 -14
- package/dist/buffer/tags.js +23 -36
- package/dist/buffer/tags.js.map +1 -1
- package/dist/config/get-js-fx-logger.d.ts +4 -0
- package/dist/{transport/make-fixl-session.js → config/get-js-fx-logger.js} +1 -1
- package/dist/config/get-js-fx-logger.js.map +1 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.js +1 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/js-fix-config.d.ts +4 -1
- package/dist/config/js-fix-config.js +3 -3
- package/dist/config/js-fix-config.js.map +1 -1
- package/dist/config/js-fix-logger.d.ts +0 -3
- package/dist/config/js-fix-logger.js.map +1 -1
- package/dist/dict-parser.js +28 -23
- package/dist/dict-parser.js.map +1 -1
- package/dist/dictionary/compiler/compiler-type.js +7 -7
- package/dist/dictionary/compiler/compiler-type.js.map +1 -1
- package/dist/dictionary/compiler/enum-compiler.d.ts +1 -0
- package/dist/dictionary/compiler/enum-compiler.js +11 -1
- package/dist/dictionary/compiler/enum-compiler.js.map +1 -1
- package/dist/dictionary/compiler/msg-compiler.js +8 -6
- package/dist/dictionary/compiler/msg-compiler.js.map +1 -1
- package/dist/dictionary/contained/contained-component-field.js +2 -1
- package/dist/dictionary/contained/contained-component-field.js.map +1 -1
- package/dist/dictionary/contained/contained-field-dispatch.d.ts +1 -14
- package/dist/dictionary/contained/contained-field-dispatch.js +4 -4
- package/dist/dictionary/contained/contained-field-dispatch.js.map +1 -1
- package/dist/dictionary/contained/contained-field-dispatcher.d.ts +14 -0
- package/dist/dictionary/contained/contained-field-dispatcher.js +3 -0
- package/dist/dictionary/contained/contained-field-dispatcher.js.map +1 -0
- package/dist/dictionary/contained/contained-field-set.d.ts +1 -1
- package/dist/dictionary/contained/contained-field-set.js +12 -11
- package/dist/dictionary/contained/contained-field-set.js.map +1 -1
- package/dist/dictionary/contained/contained-field-type.d.ts +5 -0
- package/dist/dictionary/contained/contained-field-type.js +10 -0
- package/dist/dictionary/contained/contained-field-type.js.map +1 -0
- package/dist/dictionary/contained/contained-field.d.ts +1 -5
- package/dist/dictionary/contained/contained-field.js +1 -7
- package/dist/dictionary/contained/contained-field.js.map +1 -1
- package/dist/dictionary/contained/contained-group-field.js +2 -1
- package/dist/dictionary/contained/contained-group-field.js.map +1 -1
- package/dist/dictionary/contained/contained-simple-field.js +2 -1
- package/dist/dictionary/contained/contained-simple-field.js.map +1 -1
- package/dist/dictionary/{fields-dispatch.d.ts → contained/field-dispatcher.d.ts} +3 -2
- package/dist/dictionary/contained/field-dispatcher.js +3 -0
- package/dist/dictionary/contained/field-dispatcher.js.map +1 -0
- package/dist/dictionary/contained/fields-dispatch.d.ts +6 -0
- package/dist/dictionary/contained/fields-dispatch.js +42 -0
- package/dist/dictionary/contained/fields-dispatch.js.map +1 -0
- package/dist/dictionary/contained/index.d.ts +2 -0
- package/dist/dictionary/contained/index.js +2 -0
- package/dist/dictionary/contained/index.js.map +1 -1
- package/dist/dictionary/contained-set-type.d.ts +5 -0
- package/dist/dictionary/contained-set-type.js +10 -0
- package/dist/dictionary/contained-set-type.js.map +1 -0
- package/dist/dictionary/definition/component-field-definition.js +2 -2
- package/dist/dictionary/definition/component-field-definition.js.map +1 -1
- package/dist/dictionary/definition/fix-definitions.d.ts +2 -1
- package/dist/dictionary/definition/fix-definitions.js.map +1 -1
- package/dist/dictionary/definition/group-field-definition.js +2 -2
- package/dist/dictionary/definition/group-field-definition.js.map +1 -1
- package/dist/dictionary/definition/index.d.ts +0 -1
- package/dist/dictionary/definition/index.js +0 -1
- package/dist/dictionary/definition/index.js.map +1 -1
- package/dist/dictionary/definition/message-definition.js +2 -2
- package/dist/dictionary/definition/message-definition.js.map +1 -1
- package/dist/dictionary/definition/simple-field-definition.d.ts +1 -1
- package/dist/dictionary/definition/simple-field-definition.js +5 -4
- package/dist/dictionary/definition/simple-field-definition.js.map +1 -1
- package/dist/dictionary/dict-primitive.d.ts +0 -11
- package/dist/dictionary/dict-primitive.js +0 -7
- package/dist/dictionary/dict-primitive.js.map +1 -1
- package/dist/dictionary/fix-definition-source.d.ts +6 -0
- package/dist/dictionary/fix-definition-source.js +11 -0
- package/dist/dictionary/fix-definition-source.js.map +1 -0
- package/dist/dictionary/fix-versions.d.ts +0 -9
- package/dist/dictionary/fix-versions.js +1 -39
- package/dist/dictionary/fix-versions.js.map +1 -1
- package/dist/dictionary/index.d.ts +1 -5
- package/dist/dictionary/index.js +1 -5
- package/dist/dictionary/index.js.map +1 -1
- package/dist/dictionary/parser/fix-repository/abbreviations-parser.d.ts +1 -3
- package/dist/dictionary/parser/fix-repository/abbreviations-parser.js +2 -3
- package/dist/dictionary/parser/fix-repository/abbreviations-parser.js.map +1 -1
- package/dist/dictionary/parser/fix-repository/base-parser.d.ts +2 -4
- package/dist/dictionary/parser/fix-repository/base-parser.js +1 -2
- package/dist/dictionary/parser/fix-repository/base-parser.js.map +1 -1
- package/dist/dictionary/parser/fix-repository/components-parser.d.ts +1 -3
- package/dist/dictionary/parser/fix-repository/components-parser.js +2 -3
- package/dist/dictionary/parser/fix-repository/components-parser.js.map +1 -1
- package/dist/dictionary/parser/fix-repository/data-types-parser.d.ts +1 -3
- package/dist/dictionary/parser/fix-repository/data-types-parser.js +2 -3
- package/dist/dictionary/parser/fix-repository/data-types-parser.js.map +1 -1
- package/dist/dictionary/parser/fix-repository/enums-parser.d.ts +1 -3
- package/dist/dictionary/parser/fix-repository/enums-parser.js +2 -3
- package/dist/dictionary/parser/fix-repository/enums-parser.js.map +1 -1
- package/dist/dictionary/parser/fix-repository/fields-parser.d.ts +1 -3
- package/dist/dictionary/parser/fix-repository/fields-parser.js +2 -3
- package/dist/dictionary/parser/fix-repository/fields-parser.js.map +1 -1
- package/dist/dictionary/parser/fix-repository/messages-parser.d.ts +1 -3
- package/dist/dictionary/parser/fix-repository/messages-parser.js +2 -3
- package/dist/dictionary/parser/fix-repository/messages-parser.js.map +1 -1
- package/dist/dictionary/parser/fix-repository/msg-contents-parser.d.ts +1 -3
- package/dist/dictionary/parser/fix-repository/msg-contents-parser.js +2 -3
- package/dist/dictionary/parser/fix-repository/msg-contents-parser.js.map +1 -1
- package/dist/dictionary/parser/fix-repository/repository-abbreviation.d.ts +5 -0
- package/dist/dictionary/parser/fix-repository/repository-abbreviation.js +3 -0
- package/dist/dictionary/parser/fix-repository/repository-abbreviation.js.map +1 -0
- package/dist/dictionary/parser/fix-repository/repository-component.d.ts +10 -0
- package/dist/dictionary/parser/fix-repository/repository-component.js +3 -0
- package/dist/dictionary/parser/fix-repository/repository-component.js.map +1 -0
- package/dist/dictionary/parser/fix-repository/repository-data-type.d.ts +6 -0
- package/dist/dictionary/parser/fix-repository/repository-data-type.js +3 -0
- package/dist/dictionary/parser/fix-repository/repository-data-type.js.map +1 -0
- package/dist/dictionary/parser/fix-repository/repository-enum.d.ts +7 -0
- package/dist/dictionary/parser/fix-repository/repository-enum.js +3 -0
- package/dist/dictionary/parser/fix-repository/repository-enum.js.map +1 -0
- package/dist/dictionary/parser/fix-repository/repository-field.d.ts +11 -0
- package/dist/dictionary/parser/fix-repository/repository-field.js +3 -0
- package/dist/dictionary/parser/fix-repository/repository-field.js.map +1 -0
- package/dist/dictionary/parser/fix-repository/repository-message.d.ts +11 -0
- package/dist/dictionary/parser/fix-repository/repository-message.js +3 -0
- package/dist/dictionary/parser/fix-repository/repository-message.js.map +1 -0
- package/dist/dictionary/parser/fix-repository/repository-msg-content.d.ts +9 -0
- package/dist/dictionary/parser/fix-repository/repository-msg-content.js +3 -0
- package/dist/dictionary/parser/fix-repository/repository-msg-content.js.map +1 -0
- package/dist/dictionary/parser/fix-repository/repository-msg.d.ts +0 -0
- package/dist/dictionary/parser/fix-repository/repository-msg.js +1 -0
- package/dist/dictionary/parser/fix-repository/repository-msg.js.map +1 -0
- package/dist/dictionary/parser/fix-repository/repository-type.d.ts +0 -53
- package/dist/dictionary/parser/fix-repository/repository-type.js +0 -2
- package/dist/dictionary/parser/fix-repository/repository-type.js.map +1 -1
- package/dist/dictionary/parser/fix-repository/repository-xml-parser.js +10 -10
- package/dist/dictionary/parser/fix-repository/repository-xml-parser.js.map +1 -1
- package/dist/dictionary/parser/fix-repository/repository.d.ts +12 -1
- package/dist/dictionary/parser/fix-repository/repository.js +50 -28
- package/dist/dictionary/parser/fix-repository/repository.js.map +1 -1
- package/dist/dictionary/parser/fixml/components-parser.d.ts +1 -1
- package/dist/dictionary/parser/fixml/components-parser.js.map +1 -1
- package/dist/dictionary/parser/fixml/fields-parser.d.ts +1 -1
- package/dist/dictionary/parser/fixml/fields-parser.js.map +1 -1
- package/dist/dictionary/parser/fixml/fix-xsd-parser.js +3 -2
- package/dist/dictionary/parser/fixml/fix-xsd-parser.js.map +1 -1
- package/dist/dictionary/parser/fixml/include-graph.js.map +1 -1
- package/dist/dictionary/parser/fixml/xsd-parser.d.ts +1 -1
- package/dist/dictionary/parser/fixml/xsd-parser.js.map +1 -1
- package/dist/dictionary/parser/quickfix/field-definition-parser.d.ts +4 -4
- package/dist/dictionary/parser/quickfix/field-definition-parser.js +3 -3
- package/dist/dictionary/parser/quickfix/field-definition-parser.js.map +1 -1
- package/dist/dictionary/parser/quickfix/field-set-parser.d.ts +4 -4
- package/dist/dictionary/parser/quickfix/field-set-parser.js +3 -3
- package/dist/dictionary/parser/quickfix/field-set-parser.js.map +1 -1
- package/dist/dictionary/parser/quickfix/message-parser.d.ts +4 -4
- package/dist/dictionary/parser/quickfix/message-parser.js +3 -3
- package/dist/dictionary/parser/quickfix/message-parser.js.map +1 -1
- package/dist/dictionary/parser/quickfix/node-parser.d.ts +4 -5
- package/dist/dictionary/parser/quickfix/node-parser.js +4 -4
- package/dist/dictionary/parser/quickfix/node-parser.js.map +1 -1
- package/dist/dictionary/parser/quickfix/parse-state.d.ts +8 -0
- package/dist/dictionary/parser/quickfix/parse-state.js +13 -0
- package/dist/dictionary/parser/quickfix/parse-state.js.map +1 -0
- package/dist/dictionary/parser/quickfix/quick-fix-xml-file-parser.d.ts +1 -9
- package/dist/dictionary/parser/quickfix/quick-fix-xml-file-parser.js +28 -35
- package/dist/dictionary/parser/quickfix/quick-fix-xml-file-parser.js.map +1 -1
- package/dist/dictionary/sax-node.d.ts +6 -0
- package/dist/{types/FIX4.4/quickfix/set/header.js → dictionary/sax-node.js} +1 -1
- package/dist/dictionary/sax-node.js.map +1 -0
- package/dist/dictionary/set-reduce.d.ts +5 -12
- package/dist/dictionary/set-reduce.js +28 -26
- package/dist/dictionary/set-reduce.js.map +1 -1
- package/dist/dictionary/type-dispatcher.d.ts +12 -0
- package/dist/dictionary/type-dispatcher.js +3 -0
- package/dist/dictionary/type-dispatcher.js.map +1 -0
- package/dist/dictionary/version-util.d.ts +4 -0
- package/dist/dictionary/version-util.js +36 -0
- package/dist/dictionary/version-util.js.map +1 -0
- package/dist/execution-report.test.d.ts +0 -0
- package/dist/execution-report.test.js +1 -0
- package/dist/execution-report.test.js.map +1 -0
- package/dist/experiment.d.ts +0 -0
- package/dist/experiment.js +1 -0
- package/dist/experiment.js.map +1 -0
- package/dist/fix-repo-dict.test.d.ts +0 -0
- package/dist/fix-repo-dict.test.js +1 -0
- package/dist/fix-repo-dict.test.js.map +1 -0
- package/dist/fix-session-state-args.d.ts +0 -0
- package/dist/fix-session-state-args.js +1 -0
- package/dist/fix-session-state-args.js.map +1 -0
- package/dist/fix-session-state.d.ts +0 -0
- package/dist/fix-session-state.js +1 -0
- package/dist/fix-session-state.js.map +1 -0
- package/dist/fix-session.d.ts +0 -0
- package/dist/fix-session.js +1 -0
- package/dist/fix-session.js.map +1 -0
- package/dist/fix.txt +1 -0
- package/dist/fixml-alloc-parse.test.d.ts +0 -0
- package/dist/fixml-alloc-parse.test.js +1 -0
- package/dist/fixml-alloc-parse.test.js.map +1 -0
- package/dist/fixml-mkt-data-fut-parse.test.d.ts +0 -0
- package/dist/fixml-mkt-data-fut-parse.test.js +1 -0
- package/dist/fixml-mkt-data-fut-parse.test.js.map +1 -0
- package/dist/fixml-mkt-data-settle-parse.test.d.ts +0 -0
- package/dist/fixml-mkt-data-settle-parse.test.js +1 -0
- package/dist/fixml-mkt-data-settle-parse.test.js.map +1 -0
- package/dist/fixml-tc-bi-lateral-parse.test.d.ts +0 -0
- package/dist/fixml-tc-bi-lateral-parse.test.js +1 -0
- package/dist/fixml-tc-bi-lateral-parse.test.js.map +1 -0
- package/dist/includes.test.d.ts +0 -0
- package/dist/includes.test.js +1 -0
- package/dist/includes.test.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/jsfix-cmd.d.ts +5 -0
- package/dist/jsfix-cmd.js +28 -21
- package/dist/jsfix-cmd.js.map +1 -1
- package/dist/launcher.d.ts +0 -0
- package/dist/launcher.js +1 -0
- package/dist/launcher.js.map +1 -0
- package/dist/logon.test.d.ts +0 -0
- package/dist/logon.test.js +1 -0
- package/dist/logon.test.js.map +1 -0
- package/dist/make-fix-session.d.ts +0 -0
- package/dist/make-fix-session.js +1 -0
- package/dist/make-fix-session.js.map +1 -0
- package/dist/memory-store.test.d.ts +0 -0
- package/dist/memory-store.test.js +1 -0
- package/dist/memory-store.test.js.map +1 -0
- package/dist/object.json +691 -0
- package/dist/qf-full-msg.test.d.ts +0 -0
- package/dist/qf-full-msg.test.js +1 -0
- package/dist/qf-full-msg.test.js.map +1 -0
- package/dist/repo-full-ascii-msg.test.d.ts +0 -0
- package/dist/repo-full-ascii-msg.test.js +1 -0
- package/dist/repo-full-ascii-msg.test.js.map +1 -0
- package/dist/runtime/DITokens.d.ts +20 -0
- package/dist/runtime/DITokens.js +25 -0
- package/dist/runtime/DITokens.js.map +1 -0
- package/dist/runtime/app-launcher.d.ts +27 -0
- package/dist/runtime/app-launcher.js +131 -0
- package/dist/runtime/app-launcher.js.map +1 -0
- package/dist/runtime/di-tokens.d.ts +28 -0
- package/dist/runtime/di-tokens.js +33 -0
- package/dist/runtime/di-tokens.js.map +1 -0
- package/dist/runtime/engine-factory.d.ts +4 -0
- package/dist/runtime/engine-factory.js +3 -0
- package/dist/runtime/engine-factory.js.map +1 -0
- package/dist/runtime/index.d.ts +5 -0
- package/dist/runtime/index.js +18 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/runtime/launcher.d.ts +29 -0
- package/dist/runtime/launcher.js +131 -0
- package/dist/runtime/launcher.js.map +1 -0
- package/dist/runtime/make-config.d.ts +11 -0
- package/dist/runtime/make-config.js +57 -0
- package/dist/runtime/make-config.js.map +1 -0
- package/dist/runtime/session-container.d.ts +16 -0
- package/dist/runtime/session-container.js +168 -0
- package/dist/runtime/session-container.js.map +1 -0
- package/dist/runtime/session-launcher.d.ts +26 -0
- package/dist/runtime/session-launcher.js +131 -0
- package/dist/runtime/session-launcher.js.map +1 -0
- package/dist/sample/http/oms/app.d.ts +1 -1
- package/dist/sample/http/oms/app.js +16 -14
- package/dist/sample/http/oms/app.js.map +1 -1
- package/dist/sample/http/oms/http-client.js +22 -2
- package/dist/sample/http/oms/http-client.js.map +1 -1
- package/dist/sample/http/oms/http-server.js +21 -2
- package/dist/sample/http/oms/http-server.js.map +1 -1
- package/dist/sample/launcher.d.ts +21 -4
- package/dist/sample/launcher.js +87 -19
- package/dist/sample/launcher.js.map +1 -1
- package/dist/sample/tcp/qf-md/app.d.ts +1 -1
- package/dist/sample/tcp/qf-md/app.js +11 -11
- package/dist/sample/tcp/qf-md/app.js.map +1 -1
- package/dist/sample/tcp/qf-md/md-client.js +21 -2
- package/dist/sample/tcp/qf-md/md-client.js.map +1 -1
- package/dist/sample/tcp/qf-md/md-server.js +20 -2
- package/dist/sample/tcp/qf-md/md-server.js.map +1 -1
- package/dist/sample/tcp/recovering-skeleton/app.d.ts +1 -1
- package/dist/sample/tcp/recovering-skeleton/app.js +36 -16
- package/dist/sample/tcp/recovering-skeleton/app.js.map +1 -1
- package/dist/sample/tcp/recovering-skeleton/respawn-acceptor.d.ts +3 -1
- package/dist/sample/tcp/recovering-skeleton/respawn-acceptor.js +30 -8
- package/dist/sample/tcp/recovering-skeleton/respawn-acceptor.js.map +1 -1
- package/dist/sample/tcp/recovering-skeleton/skeleton-client.d.ts +1 -1
- package/dist/sample/tcp/recovering-skeleton/skeleton-client.js +22 -3
- package/dist/sample/tcp/recovering-skeleton/skeleton-client.js.map +1 -1
- package/dist/sample/tcp/recovering-skeleton/skeleton-server.js +21 -2
- package/dist/sample/tcp/recovering-skeleton/skeleton-server.js.map +1 -1
- package/dist/sample/tcp/skeleton/app.d.ts +1 -1
- package/dist/sample/tcp/skeleton/app.js +8 -13
- package/dist/sample/tcp/skeleton/app.js.map +1 -1
- package/dist/sample/tcp/skeleton/skeleton-session.d.ts +1 -1
- package/dist/sample/tcp/skeleton/skeleton-session.js +26 -4
- package/dist/sample/tcp/skeleton/skeleton-session.js.map +1 -1
- package/dist/sample/tcp/tls-trade-capture/app.d.ts +1 -1
- package/dist/sample/tcp/tls-trade-capture/app.js +4 -24
- package/dist/sample/tcp/tls-trade-capture/app.js.map +1 -1
- package/dist/sample/tcp/trade-capture/app-launcher.d.ts +6 -0
- package/dist/sample/tcp/trade-capture/app-launcher.js +21 -0
- package/dist/sample/tcp/trade-capture/app-launcher.js.map +1 -0
- package/dist/sample/tcp/trade-capture/app-launher.d.ts +0 -0
- package/dist/sample/tcp/trade-capture/app-launher.js +1 -0
- package/dist/sample/tcp/trade-capture/app-launher.js.map +1 -0
- package/dist/sample/tcp/trade-capture/app.d.ts +1 -1
- package/dist/sample/tcp/trade-capture/app.js +4 -21
- package/dist/sample/tcp/trade-capture/app.js.map +1 -1
- package/dist/sample/tcp/trade-capture/jsfix.test_client.txt +11 -0
- package/dist/sample/tcp/trade-capture/jsfix.test_server.txt +10 -0
- package/dist/sample/tcp/trade-capture/trade-capture-client.js.map +1 -1
- package/dist/sample/tcp/trade-capture/trade-capture-server.js.map +1 -1
- package/dist/sample/tcp/trade-capture/trade-factory.js +7 -1
- package/dist/sample/tcp/trade-capture/trade-factory.js.map +1 -1
- package/dist/segment-description.d.ts +0 -0
- package/dist/segment-description.js +1 -0
- package/dist/segment-description.js.map +1 -0
- package/dist/segment-summary.d.ts +0 -0
- package/dist/segment-summary.js +1 -0
- package/dist/segment-summary.js.map +1 -0
- package/dist/segment-type.d.ts +0 -0
- package/dist/segment-type.js +1 -0
- package/dist/segment-type.js.map +1 -0
- package/dist/session-description.d.ts +0 -0
- package/dist/session-description.js +1 -0
- package/dist/session-description.js.map +1 -0
- package/dist/session-msg-factory.d.ts +0 -0
- package/dist/session-msg-factory.js +1 -0
- package/dist/session-msg-factory.js.map +1 -0
- package/dist/session-state.d.ts +0 -0
- package/dist/session-state.js +1 -0
- package/dist/session-state.js.map +1 -0
- package/dist/session-state.test.d.ts +0 -0
- package/dist/session-state.test.js +1 -0
- package/dist/session-state.test.js.map +1 -0
- package/dist/session.test.d.ts +0 -0
- package/dist/session.test.js +1 -0
- package/dist/session.test.js.map +1 -0
- package/dist/setup.d.ts +0 -0
- package/dist/setup.js +1 -0
- package/dist/setup.js.map +1 -0
- package/dist/skeleton-runner.d.ts +0 -0
- package/dist/skeleton-runner.js +1 -0
- package/dist/skeleton-runner.js.map +1 -0
- package/dist/store/fix-msg-ascii-store-resend.d.ts +1 -1
- package/dist/store/fix-msg-ascii-store-resend.js +2 -1
- package/dist/store/fix-msg-ascii-store-resend.js.map +1 -1
- package/dist/store/fix-msg-memory-store.d.ts +1 -1
- package/dist/store/fix-msg-memory-store.js.map +1 -1
- package/dist/store/fix-msg-store-record.d.ts +2 -0
- package/dist/store/fix-msg-store-record.js +4 -0
- package/dist/store/fix-msg-store-record.js.map +1 -1
- package/dist/store/fix-msg-store-state.d.ts +6 -0
- package/dist/store/fix-msg-store-state.js +3 -0
- package/dist/store/fix-msg-store-state.js.map +1 -0
- package/dist/store/fix-msg-store.d.ts +1 -6
- package/dist/store/fix-msg-store.js.map +1 -1
- package/dist/structure.json +631 -0
- package/dist/tag-pos.d.ts +0 -0
- package/dist/tag-pos.js +1 -0
- package/dist/tag-pos.js.map +1 -0
- package/dist/tag-type.d.ts +0 -0
- package/dist/tag-type.js +1 -0
- package/dist/tag-type.js.map +1 -0
- package/dist/tags.d.ts +0 -0
- package/dist/tags.js +1 -0
- package/dist/tags.js.map +1 -0
- package/dist/test/ascii/ascii-encoder.test.d.ts +1 -0
- package/dist/test/{ascii-encode.test.js → ascii/ascii-encoder.test.js} +140 -49
- package/dist/test/ascii/ascii-encoder.test.js.map +1 -0
- package/dist/test/ascii/ascii-parser.test.d.ts +1 -0
- package/dist/test/ascii/ascii-parser.test.js +123 -0
- package/dist/test/ascii/ascii-parser.test.js.map +1 -0
- package/dist/test/ascii/ascii-segment.test.d.ts +1 -0
- package/dist/test/ascii/ascii-segment.test.js +86 -0
- package/dist/test/ascii/ascii-segment.test.js.map +1 -0
- package/dist/test/ascii/ascii-store-replay.test.d.ts +1 -0
- package/dist/test/ascii/ascii-store-replay.test.js +92 -0
- package/dist/test/ascii/ascii-store-replay.test.js.map +1 -0
- package/dist/test/ascii/ascii-tag-pos.test.d.ts +1 -0
- package/dist/test/ascii/ascii-tag-pos.test.js +105 -0
- package/dist/test/ascii/ascii-tag-pos.test.js.map +1 -0
- package/dist/test/ascii/execution-report.test.d.ts +1 -0
- package/dist/test/ascii/execution-report.test.js +489 -0
- package/dist/test/ascii/execution-report.test.js.map +1 -0
- package/dist/test/ascii/fix-log-replay.test.d.ts +1 -0
- package/dist/test/ascii/fix-log-replay.test.js +47 -0
- package/dist/test/ascii/fix-log-replay.test.js.map +1 -0
- package/dist/test/ascii/fix-repo-dict.test.d.ts +1 -0
- package/dist/test/ascii/fix-repo-dict.test.js +128 -0
- package/dist/test/ascii/fix-repo-dict.test.js.map +1 -0
- package/dist/test/ascii/includes.test.d.ts +1 -0
- package/dist/test/ascii/includes.test.js +43 -0
- package/dist/test/ascii/includes.test.js.map +1 -0
- package/dist/test/ascii/logon.test.d.ts +1 -0
- package/dist/test/ascii/logon.test.js +91 -0
- package/dist/test/ascii/logon.test.js.map +1 -0
- package/dist/test/ascii/memory-store.test.d.ts +1 -0
- package/dist/test/ascii/memory-store.test.js +75 -0
- package/dist/test/ascii/memory-store.test.js.map +1 -0
- package/dist/test/ascii/qf-full-msg.test.d.ts +1 -0
- package/dist/test/ascii/qf-full-msg.test.js +81 -0
- package/dist/test/ascii/qf-full-msg.test.js.map +1 -0
- package/dist/test/ascii/repo-full-ascii-msg.test.d.ts +1 -0
- package/dist/test/ascii/repo-full-ascii-msg.test.js +87 -0
- package/dist/test/ascii/repo-full-ascii-msg.test.js.map +1 -0
- package/dist/test/ascii/session-state.test.d.ts +1 -0
- package/dist/test/ascii/session-state.test.js +73 -0
- package/dist/test/ascii/session-state.test.js.map +1 -0
- package/dist/test/ascii/session.test.d.ts +1 -0
- package/dist/test/ascii/session.test.js +280 -0
- package/dist/test/ascii/session.test.js.map +1 -0
- package/dist/test/ascii/time-formatter.test.d.ts +1 -0
- package/dist/test/ascii/time-formatter.test.js +80 -0
- package/dist/test/ascii/time-formatter.test.js.map +1 -0
- package/dist/test/ascii/view-decode.test.d.ts +1 -0
- package/dist/test/ascii/view-decode.test.js +183 -0
- package/dist/test/ascii/view-decode.test.js.map +1 -0
- package/dist/test/ascii-encoder.test.d.ts +1 -1
- package/dist/test/ascii-encoder.test.js +51 -48
- package/dist/test/ascii-encoder.test.js.map +1 -1
- package/dist/test/ascii-parser.test.d.ts +1 -1
- package/dist/test/ascii-parser.test.js +26 -45
- package/dist/test/ascii-parser.test.js.map +1 -1
- package/dist/test/ascii-segment.test.d.ts +1 -1
- package/dist/test/ascii-segment.test.js +13 -34
- package/dist/test/ascii-segment.test.js.map +1 -1
- package/dist/test/ascii-store-replay.test.d.ts +1 -1
- package/dist/test/ascii-store-replay.test.js +12 -41
- package/dist/test/ascii-store-replay.test.js.map +1 -1
- package/dist/test/ascii-tag-pos.test.d.ts +1 -1
- package/dist/test/ascii-tag-pos.test.js +8 -8
- package/dist/test/ascii-tag-pos.test.js.map +1 -1
- package/dist/test/elastic-buffer.test.d.ts +1 -1
- package/dist/test/elastic-buffer.test.js +3 -1
- package/dist/test/elastic-buffer.test.js.map +1 -1
- package/dist/test/encode-proxy.test.d.ts +1 -1
- package/dist/test/encode-proxy.test.js +9 -9
- package/dist/test/encode-proxy.test.js.map +1 -1
- package/dist/test/env/experiment.d.ts +23 -0
- package/dist/test/env/experiment.js +33 -0
- package/dist/test/env/experiment.js.map +1 -0
- package/dist/test/env/parsing-result.d.ts +10 -0
- package/dist/test/env/parsing-result.js +14 -0
- package/dist/test/env/parsing-result.js.map +1 -0
- package/dist/test/env/setup.d.ts +39 -0
- package/dist/test/env/setup.js +98 -0
- package/dist/test/env/setup.js.map +1 -0
- package/dist/test/env/skeleton-runner.d.ts +15 -0
- package/dist/test/env/skeleton-runner.js +108 -0
- package/dist/test/env/skeleton-runner.js.map +1 -0
- package/dist/test/env/test-recovery.d.ts +13 -0
- package/dist/test/env/test-recovery.js +41 -0
- package/dist/test/env/test-recovery.js.map +1 -0
- package/dist/test/env/to-views.d.ts +11 -0
- package/dist/test/env/to-views.js +56 -0
- package/dist/test/env/to-views.js.map +1 -0
- package/dist/test/execution-report.test.d.ts +1 -1
- package/dist/test/execution-report.test.js +53 -49
- package/dist/test/execution-report.test.js.map +1 -1
- package/dist/test/experiment.d.ts +23 -0
- package/dist/test/experiment.js +33 -0
- package/dist/test/experiment.js.map +1 -0
- package/dist/test/expieriment.d.ts +23 -0
- package/dist/test/expieriment.js +33 -0
- package/dist/test/expieriment.js.map +1 -0
- package/dist/test/fix-log-replay.test.d.ts +1 -1
- package/dist/test/fix-log-replay.test.js +7 -5
- package/dist/test/fix-log-replay.test.js.map +1 -1
- package/dist/test/fix-repo-dict.test.d.ts +1 -1
- package/dist/test/fix-repo-dict.test.js +6 -5
- package/dist/test/fix-repo-dict.test.js.map +1 -1
- package/dist/test/fixml/fixml-alloc-parse.test.d.ts +1 -0
- package/dist/test/fixml/fixml-alloc-parse.test.js +161 -0
- package/dist/test/fixml/fixml-alloc-parse.test.js.map +1 -0
- package/dist/test/fixml/fixml-mkt-data-fut-parse.test.d.ts +1 -0
- package/dist/test/fixml/fixml-mkt-data-fut-parse.test.js +61 -0
- package/dist/test/fixml/fixml-mkt-data-fut-parse.test.js.map +1 -0
- package/dist/test/fixml/fixml-mkt-data-settle-parse.test.d.ts +1 -0
- package/dist/test/fixml/fixml-mkt-data-settle-parse.test.js +34 -0
- package/dist/test/fixml/fixml-mkt-data-settle-parse.test.js.map +1 -0
- package/dist/test/fixml/fixml-tc-bi-lateral-parse.test.d.ts +1 -0
- package/dist/test/fixml/fixml-tc-bi-lateral-parse.test.js +97 -0
- package/dist/test/fixml/fixml-tc-bi-lateral-parse.test.js.map +1 -0
- package/dist/test/fixml/repo-full-fixml-msg.test.d.ts +1 -0
- package/dist/test/fixml/repo-full-fixml-msg.test.js +143 -0
- package/dist/test/fixml/repo-full-fixml-msg.test.js.map +1 -0
- package/dist/test/fixml-alloc-parse.test.d.ts +1 -1
- package/dist/test/fixml-alloc-parse.test.js +2 -1
- package/dist/test/fixml-alloc-parse.test.js.map +1 -1
- package/dist/test/fixml-mkt-data-fut-parse.test.d.ts +1 -1
- package/dist/test/fixml-mkt-data-fut-parse.test.js +2 -1
- package/dist/test/fixml-mkt-data-fut-parse.test.js.map +1 -1
- package/dist/test/fixml-mkt-data-settle-parse.test.d.ts +1 -1
- package/dist/test/fixml-mkt-data-settle-parse.test.js +2 -1
- package/dist/test/fixml-mkt-data-settle-parse.test.js.map +1 -1
- package/dist/test/fixml-tc-bi-lateral-parse.test.d.ts +1 -1
- package/dist/test/fixml-tc-bi-lateral-parse.test.js +2 -1
- package/dist/test/fixml-tc-bi-lateral-parse.test.js.map +1 -1
- package/dist/test/includes.test.d.ts +1 -1
- package/dist/test/includes.test.js +1 -0
- package/dist/test/includes.test.js.map +1 -1
- package/dist/test/logon.test.d.ts +1 -1
- package/dist/test/logon.test.js +11 -11
- package/dist/test/logon.test.js.map +1 -1
- package/dist/test/memory-store.test.d.ts +1 -1
- package/dist/test/memory-store.test.js +11 -8
- package/dist/test/memory-store.test.js.map +1 -1
- package/dist/test/qf-full-msg.test.d.ts +1 -1
- package/dist/test/qf-full-msg.test.js +13 -9
- package/dist/test/qf-full-msg.test.js.map +1 -1
- package/dist/test/repo-full-ascii-msg.test.d.ts +1 -1
- package/dist/test/repo-full-ascii-msg.test.js +14 -10
- package/dist/test/repo-full-ascii-msg.test.js.map +1 -1
- package/dist/test/repo-full-fixml-msg.test.d.ts +1 -1
- package/dist/test/repo-full-fixml-msg.test.js +7 -4
- package/dist/test/repo-full-fixml-msg.test.js.map +1 -1
- package/dist/test/session-state.test.d.ts +1 -1
- package/dist/test/session-state.test.js +1 -0
- package/dist/test/session-state.test.js.map +1 -1
- package/dist/test/session.test.d.ts +1 -1
- package/dist/test/session.test.js +13 -144
- package/dist/test/session.test.js.map +1 -1
- package/dist/test/setup.d.ts +45 -0
- package/dist/test/setup.js +102 -0
- package/dist/test/setup.js.map +1 -0
- package/dist/test/skeleton-runner.d.ts +15 -0
- package/dist/test/skeleton-runner.js +108 -0
- package/dist/test/skeleton-runner.js.map +1 -0
- package/dist/test/time-formatter.test.d.ts +1 -1
- package/dist/test/time-formatter.test.js +3 -1
- package/dist/test/time-formatter.test.js.map +1 -1
- package/dist/test/to-views.d.ts +1 -1
- package/dist/test/to-views.js +5 -4
- package/dist/test/to-views.js.map +1 -1
- package/dist/test/view-decode.test.d.ts +1 -1
- package/dist/test/view-decode.test.js +9 -34
- package/dist/test/view-decode.test.js.map +1 -1
- package/dist/time-formatter.test.d.ts +0 -0
- package/dist/time-formatter.test.js +1 -0
- package/dist/time-formatter.test.js.map +1 -0
- package/dist/to-views.d.ts +0 -0
- package/dist/to-views.js +1 -0
- package/dist/to-views.js.map +1 -0
- package/dist/token.txt +248 -0
- package/dist/transport/FixEntity.d.ts +8 -0
- package/dist/transport/FixEntity.js +12 -0
- package/dist/transport/FixEntity.js.map +1 -0
- package/dist/transport/a-session-msg-factory.d.ts +2 -2
- package/dist/transport/a-session-msg-factory.js.map +1 -1
- package/dist/transport/ascii/ascii-msg-transmitter.js +25 -6
- package/dist/transport/ascii/ascii-msg-transmitter.js.map +1 -1
- package/dist/transport/ascii/ascii-session-msg-factory.d.ts +2 -2
- package/dist/transport/ascii/ascii-session-msg-factory.js +1 -1
- package/dist/transport/ascii/ascii-session-msg-factory.js.map +1 -1
- package/dist/transport/ascii/ascii-session.d.ts +1 -1
- package/dist/transport/ascii/ascii-session.js +26 -23
- package/dist/transport/ascii/ascii-session.js.map +1 -1
- package/dist/transport/ascii/index.d.ts +0 -1
- package/dist/transport/ascii/index.js +0 -1
- package/dist/transport/ascii/index.js.map +1 -1
- package/dist/transport/duplex/http-duplex.d.ts +1 -1
- package/dist/transport/duplex/http-duplex.js.map +1 -1
- package/dist/transport/duplex/tcp-duplex.js +22 -2
- package/dist/transport/duplex/tcp-duplex.js.map +1 -1
- package/dist/transport/factory/index.d.ts +1 -0
- package/dist/transport/factory/index.js +14 -0
- package/dist/transport/factory/index.js.map +1 -0
- package/dist/transport/{msg-transport.d.ts → factory/msg-transport.d.ts} +4 -4
- package/dist/transport/factory/msg-transport.js +61 -0
- package/dist/transport/factory/msg-transport.js.map +1 -0
- package/dist/transport/fix-acceptor.d.ts +2 -2
- package/dist/transport/fix-acceptor.js.map +1 -1
- package/dist/transport/fix-entity.d.ts +8 -0
- package/dist/transport/fix-entity.js +12 -0
- package/dist/transport/fix-entity.js.map +1 -0
- package/dist/transport/fix-initiator.d.ts +2 -2
- package/dist/transport/fix-initiator.js.map +1 -1
- package/dist/transport/fix-msg-factory.d.ts +1 -1
- package/dist/transport/fix-msg-factory.js.map +1 -1
- package/dist/transport/fix-session-state-args.d.ts +8 -0
- package/dist/transport/fix-session-state-args.js +3 -0
- package/dist/transport/fix-session-state-args.js.map +1 -0
- package/dist/transport/fix-session-state.d.ts +3 -41
- package/dist/transport/fix-session-state.js +21 -54
- package/dist/transport/fix-session-state.js.map +1 -1
- package/dist/transport/fix-session.d.ts +3 -2
- package/dist/transport/fix-session.js +44 -42
- package/dist/transport/fix-session.js.map +1 -1
- package/dist/transport/fixml/fixml-msg-transmitter.js +23 -5
- package/dist/transport/fixml/fixml-msg-transmitter.js.map +1 -1
- package/dist/transport/fixml/fixml-session-msg-factory.d.ts +2 -2
- package/dist/transport/fixml/fixml-session-msg-factory.js +1 -1
- package/dist/transport/fixml/fixml-session-msg-factory.js.map +1 -1
- package/dist/transport/fixml/fixml-session.d.ts +1 -1
- package/dist/transport/fixml/fixml-session.js +3 -3
- package/dist/transport/fixml/fixml-session.js.map +1 -1
- package/dist/transport/fixml/index.d.ts +0 -2
- package/dist/transport/fixml/index.js +0 -2
- package/dist/transport/fixml/index.js.map +1 -1
- package/dist/transport/http/html-options.d.ts +8 -0
- package/dist/{store/replay-record.js → transport/http/html-options.js} +1 -1
- package/dist/transport/http/html-options.js.map +1 -0
- package/dist/transport/http/html-route.d.ts +5 -0
- package/dist/{types/FIX4.4/quickfix/set/trailer.js → transport/http/html-route.js} +1 -1
- package/dist/transport/http/html-route.js.map +1 -0
- package/dist/transport/http/http-acceptor-listener.d.ts +7 -0
- package/dist/transport/http/http-acceptor-listener.js +68 -0
- package/dist/transport/http/http-acceptor-listener.js.map +1 -0
- package/dist/transport/http/http-acceptor.js +24 -5
- package/dist/transport/http/http-acceptor.js.map +1 -1
- package/dist/transport/http/http-adapter.d.ts +7 -0
- package/dist/transport/http/http-adapter.js +3 -0
- package/dist/transport/http/http-adapter.js.map +1 -0
- package/dist/transport/http/http-initiator.d.ts +9 -3
- package/dist/transport/http/http-initiator.js +57 -26
- package/dist/transport/http/http-initiator.js.map +1 -1
- package/dist/transport/http/http-json-sample-adapter.d.ts +2 -1
- package/dist/transport/http/http-json-sample-adapter.js +21 -2
- package/dist/transport/http/http-json-sample-adapter.js.map +1 -1
- package/dist/transport/http/http-transaction.d.ts +1 -1
- package/dist/transport/http/http-transaction.js.map +1 -1
- package/dist/transport/http/http-transport-description.d.ts +8 -0
- package/dist/transport/http/http-transport-description.js +3 -0
- package/dist/transport/http/http-transport-description.js.map +1 -0
- package/dist/transport/http/index.d.ts +1 -0
- package/dist/transport/http/index.js +1 -0
- package/dist/transport/http/index.js.map +1 -1
- package/dist/transport/index.d.ts +11 -10
- package/dist/transport/index.js +11 -10
- package/dist/transport/index.js.map +1 -1
- package/dist/transport/{make-fixl-session.d.ts → make-fix-session.d.ts} +0 -0
- package/dist/transport/make-fix-session.js +3 -0
- package/dist/transport/make-fix-session.js.map +1 -0
- package/dist/transport/msg-application.d.ts +12 -0
- package/dist/transport/msg-application.js +3 -0
- package/dist/transport/msg-application.js.map +1 -0
- package/dist/transport/msg-transmitter.d.ts +5 -5
- package/dist/transport/msg-transmitter.js +2 -3
- package/dist/transport/msg-transmitter.js.map +1 -1
- package/dist/transport/session/a-session-msg-factory.d.ts +23 -0
- package/dist/transport/session/a-session-msg-factory.js +58 -0
- package/dist/transport/session/a-session-msg-factory.js.map +1 -0
- package/dist/transport/session/fix-session-state-args.d.ts +8 -0
- package/dist/transport/session/fix-session-state-args.js +3 -0
- package/dist/transport/session/fix-session-state-args.js.map +1 -0
- package/dist/transport/session/fix-session-state.d.ts +32 -0
- package/dist/transport/session/fix-session-state.js +133 -0
- package/dist/transport/session/fix-session-state.js.map +1 -0
- package/dist/transport/session/fix-session.d.ts +50 -0
- package/dist/transport/session/fix-session.js +291 -0
- package/dist/transport/session/fix-session.js.map +1 -0
- package/dist/transport/session/make-fix-session.d.ts +5 -0
- package/dist/transport/session/make-fix-session.js +3 -0
- package/dist/transport/session/make-fix-session.js.map +1 -0
- package/dist/transport/session/session-description.d.ts +17 -0
- package/dist/transport/session/session-description.js +3 -0
- package/dist/transport/session/session-description.js.map +1 -0
- package/dist/transport/session/session-msg-factory.d.ts +15 -0
- package/dist/transport/session/session-msg-factory.js +3 -0
- package/dist/transport/session/session-msg-factory.js.map +1 -0
- package/dist/transport/session/session-state.d.ts +25 -0
- package/dist/transport/session/session-state.js +30 -0
- package/dist/transport/session/session-state.js.map +1 -0
- package/dist/transport/session-description.d.ts +1 -48
- package/dist/transport/session-description.js.map +1 -1
- package/dist/transport/session-msg-factory.d.ts +7 -20
- package/dist/transport/session-msg-factory.js +0 -150
- package/dist/transport/session-msg-factory.js.map +1 -1
- package/dist/transport/session-state.d.ts +25 -0
- package/dist/transport/session-state.js +30 -0
- package/dist/transport/session-state.js.map +1 -0
- package/dist/transport/tcp/index.d.ts +3 -2
- package/dist/transport/tcp/index.js +3 -2
- package/dist/transport/tcp/index.js.map +1 -1
- package/dist/transport/tcp/recovering-tcp-initiator.d.ts +7 -9
- package/dist/transport/tcp/recovering-tcp-initiator.js +41 -16
- package/dist/transport/tcp/recovering-tcp-initiator.js.map +1 -1
- package/dist/transport/tcp/tcp-acceptor-listener.d.ts +7 -0
- package/dist/transport/tcp/tcp-acceptor-listener.js +70 -0
- package/dist/transport/tcp/tcp-acceptor-listener.js.map +1 -0
- package/dist/transport/tcp/tcp-acceptor.js +29 -12
- package/dist/transport/tcp/tcp-acceptor.js.map +1 -1
- package/dist/transport/tcp/tcp-initiator-connector.d.ts +10 -0
- package/dist/transport/tcp/tcp-initiator-connector.js +97 -0
- package/dist/transport/tcp/tcp-initiator-connector.js.map +1 -0
- package/dist/transport/tcp/tcp-initiator.d.ts +2 -2
- package/dist/transport/tcp/tcp-initiator.js +28 -9
- package/dist/transport/tcp/tcp-initiator.js.map +1 -1
- package/dist/transport/tcp/tcp-transport-description.d.ts +6 -0
- package/dist/transport/tcp/tcp-transport-description.js +3 -0
- package/dist/transport/tcp/tcp-transport-description.js.map +1 -0
- package/dist/transport/tcp/tls-options-factory.d.ts +9 -0
- package/dist/transport/tcp/tls-options-factory.js +53 -0
- package/dist/transport/tcp/tls-options-factory.js.map +1 -0
- package/dist/transport/tcp/tls-options.d.ts +10 -5
- package/dist/transport/tcp/tls-options.js +0 -49
- package/dist/transport/tcp/tls-options.js.map +1 -1
- package/dist/transport/tick-action.d.ts +8 -0
- package/dist/transport/tick-action.js +13 -0
- package/dist/transport/tick-action.js.map +1 -0
- package/dist/util/buffer-helper.js +1 -1
- package/dist/util/buffer-helper.js.map +1 -1
- package/dist/util/definition-factory.d.ts +10 -0
- package/dist/util/definition-factory.js +56 -0
- package/dist/util/definition-factory.js.map +1 -0
- package/dist/util/dictionary-path.d.ts +4 -0
- package/dist/util/dictionary-path.js +3 -0
- package/dist/util/dictionary-path.js.map +1 -0
- package/dist/util/index.d.ts +1 -1
- package/dist/util/index.js +1 -1
- package/dist/util/index.js.map +1 -1
- package/dist/util/json-helper.d.ts +3 -1
- package/dist/util/json-helper.js +13 -12
- package/dist/util/json-helper.js.map +1 -1
- package/dist/util/message-generator.d.ts +1 -1
- package/dist/util/message-generator.js +16 -15
- package/dist/util/message-generator.js.map +1 -1
- package/dist/util/replay.d.ts +6 -3
- package/dist/util/replay.js +24 -26
- package/dist/util/replay.js.map +1 -1
- package/package.json +15 -10
- package/script/build.cmd +1 -0
- package/script/build.sh +1 -0
- package/script/test.cmd +3 -0
- package/src/buffer/{ascii-chars.ts → ascii/ascii-chars.ts} +0 -0
- package/src/buffer/ascii/ascii-encoder.ts +9 -6
- package/src/buffer/ascii/ascii-parser-state.ts +7 -12
- package/src/buffer/ascii/ascii-parser.ts +23 -16
- package/src/buffer/ascii/ascii-segment-parser.ts +14 -8
- package/src/buffer/ascii/ascii-view.ts +4 -9
- package/src/buffer/ascii/index.ts +1 -0
- package/src/buffer/ascii/parse-state.ts +8 -0
- package/src/buffer/ascii/time-formatter.ts +1 -1
- package/src/buffer/elastic-buffer.ts +7 -2
- package/src/buffer/encode-proxy.ts +9 -4
- package/src/buffer/fixml/fixml-encoder.ts +15 -11
- package/src/buffer/fixml/fixml-parser.ts +16 -6
- package/src/buffer/fixml/fixml-view.ts +4 -9
- package/src/buffer/fixml/populated-attributes.ts +6 -0
- package/src/buffer/index.ts +4 -8
- package/src/buffer/msg-encoder.ts +2 -1
- package/src/buffer/msg-view.ts +13 -9
- package/src/buffer/{segment-description.ts → segment/segment-description.ts} +4 -11
- package/src/buffer/{segment-summary.ts → segment/segment-summary.ts} +0 -0
- package/src/buffer/segment/segment-type.ts +8 -0
- package/src/buffer/structure.ts +3 -3
- package/src/buffer/{tag-pos.ts → tag/tag-pos.ts} +0 -0
- package/src/buffer/tag/tag-type.ts +13 -0
- package/src/buffer/{tags.ts → tag/tags.ts} +4 -16
- package/src/config/get-js-fx-logger.ts +4 -0
- package/src/config/index.ts +1 -0
- package/src/config/js-fix-config.ts +5 -2
- package/src/config/js-fix-logger.ts +0 -3
- package/src/dictionary/compiler/compiler-type.ts +3 -3
- package/src/dictionary/compiler/enum-compiler.ts +12 -1
- package/src/dictionary/compiler/msg-compiler.ts +8 -7
- package/src/dictionary/contained/contained-component-field.ts +2 -1
- package/src/dictionary/contained/contained-field-dispatch.ts +3 -7
- package/src/dictionary/contained/contained-field-dispatcher.ts +9 -0
- package/src/dictionary/contained/contained-field-set.ts +5 -3
- package/src/dictionary/contained/contained-field-type.ts +5 -0
- package/src/dictionary/contained/contained-field.ts +1 -6
- package/src/dictionary/contained/contained-group-field.ts +2 -1
- package/src/dictionary/contained/contained-simple-field.ts +2 -1
- package/src/dictionary/contained/field-dispatcher.ts +9 -0
- package/src/dictionary/contained/fields-dispatch.ts +46 -0
- package/src/dictionary/contained/index.ts +2 -0
- package/src/dictionary/contained-set-type.ts +5 -0
- package/src/dictionary/definition/component-field-definition.ts +1 -1
- package/src/dictionary/definition/fix-definitions.ts +2 -1
- package/src/dictionary/definition/group-field-definition.ts +1 -1
- package/src/dictionary/definition/index.ts +0 -1
- package/src/dictionary/definition/message-definition.ts +1 -1
- package/src/dictionary/definition/simple-field-definition.ts +3 -1
- package/src/dictionary/dict-primitive.ts +0 -13
- package/src/dictionary/fix-definition-source.ts +6 -0
- package/src/dictionary/fix-versions.ts +0 -32
- package/src/dictionary/index.ts +1 -5
- package/src/dictionary/parser/fix-repository/abbreviations-parser.ts +2 -3
- package/src/dictionary/parser/fix-repository/base-parser.ts +2 -3
- package/src/dictionary/parser/fix-repository/components-parser.ts +2 -3
- package/src/dictionary/parser/fix-repository/data-types-parser.ts +2 -3
- package/src/dictionary/parser/fix-repository/enums-parser.ts +2 -3
- package/src/dictionary/parser/fix-repository/fields-parser.ts +2 -3
- package/src/dictionary/parser/fix-repository/messages-parser.ts +2 -3
- package/src/dictionary/parser/fix-repository/msg-contents-parser.ts +2 -3
- package/src/dictionary/parser/fix-repository/repository-abbreviation.ts +6 -0
- package/src/dictionary/parser/fix-repository/repository-component.ts +11 -0
- package/src/dictionary/parser/fix-repository/repository-data-type.ts +7 -0
- package/src/dictionary/parser/fix-repository/repository-enum.ts +8 -0
- package/src/dictionary/parser/fix-repository/repository-field.ts +12 -0
- package/src/dictionary/parser/fix-repository/repository-message.ts +12 -0
- package/src/dictionary/parser/fix-repository/repository-msg-content.ts +10 -0
- package/src/dictionary/parser/fix-repository/repository-type.ts +0 -59
- package/src/dictionary/parser/fix-repository/repository-xml-parser.ts +10 -9
- package/src/dictionary/parser/fix-repository/repository.ts +69 -38
- package/src/dictionary/parser/fixml/components-parser.ts +6 -3
- package/src/dictionary/parser/fixml/fields-parser.ts +1 -1
- package/src/dictionary/parser/fixml/fix-xsd-parser.ts +2 -1
- package/src/dictionary/parser/fixml/include-graph.ts +2 -1
- package/src/dictionary/parser/fixml/xsd-parser.ts +2 -1
- package/src/dictionary/parser/quickfix/field-definition-parser.ts +4 -5
- package/src/dictionary/parser/quickfix/field-set-parser.ts +4 -5
- package/src/dictionary/parser/quickfix/message-parser.ts +4 -5
- package/src/dictionary/parser/quickfix/node-parser.ts +3 -6
- package/src/dictionary/parser/quickfix/parse-state.ts +8 -0
- package/src/dictionary/parser/quickfix/quick-fix-xml-file-parser.ts +9 -15
- package/src/dictionary/sax-node.ts +7 -0
- package/src/dictionary/set-reduce.ts +30 -31
- package/src/dictionary/type-dispatcher.ts +7 -0
- package/src/dictionary/version-util.ts +25 -0
- package/src/index.ts +1 -0
- package/src/jsfix-cmd.ts +31 -16
- package/src/runtime/di-tokens.ts +48 -0
- package/src/runtime/engine-factory.ts +5 -0
- package/src/runtime/index.ts +5 -0
- package/src/runtime/make-config.ts +35 -0
- package/src/runtime/session-container.ts +180 -0
- package/src/runtime/session-launcher.ts +127 -0
- package/src/sample/http/oms/app.ts +20 -14
- package/src/sample/http/oms/http-client.ts +5 -2
- package/src/sample/http/oms/http-server.ts +5 -1
- package/src/sample/tcp/qf-md/app.ts +12 -12
- package/src/sample/tcp/qf-md/md-client.ts +4 -1
- package/src/sample/tcp/qf-md/md-server.ts +3 -1
- package/src/sample/tcp/recovering-skeleton/app.ts +37 -15
- package/src/sample/tcp/recovering-skeleton/respawn-acceptor.ts +16 -9
- package/src/sample/tcp/recovering-skeleton/skeleton-client.ts +4 -2
- package/src/sample/tcp/recovering-skeleton/skeleton-server.ts +4 -2
- package/src/sample/tcp/skeleton/app.ts +10 -15
- package/src/sample/tcp/skeleton/skeleton-session.ts +8 -4
- package/src/sample/tcp/tls-trade-capture/app.ts +8 -31
- package/src/sample/tcp/trade-capture/app-launcher.ts +22 -0
- package/src/sample/tcp/trade-capture/app.ts +3 -26
- package/src/sample/tcp/trade-capture/trade-capture-client.ts +2 -1
- package/src/sample/tcp/trade-capture/trade-capture-server.ts +2 -1
- package/src/sample/tcp/trade-capture/trade-factory.ts +7 -1
- package/src/store/fix-msg-ascii-store-resend.ts +3 -2
- package/src/store/fix-msg-memory-store.ts +1 -1
- package/src/store/fix-msg-store-record.ts +6 -0
- package/src/store/fix-msg-store-state.ts +6 -0
- package/src/store/fix-msg-store.ts +1 -7
- package/src/transport/ascii/ascii-msg-transmitter.ts +9 -5
- package/src/transport/ascii/ascii-session-msg-factory.ts +2 -2
- package/src/transport/ascii/ascii-session.ts +9 -6
- package/src/transport/ascii/index.ts +0 -1
- package/src/transport/duplex/http-duplex.ts +1 -1
- package/src/transport/duplex/tcp-duplex.ts +4 -1
- package/src/transport/factory/index.ts +1 -0
- package/src/transport/factory/msg-transport.ts +55 -0
- package/src/transport/fix-acceptor.ts +2 -2
- package/src/transport/fix-entity.ts +9 -0
- package/src/transport/fix-initiator.ts +2 -2
- package/src/transport/fixml/fixml-msg-transmitter.ts +8 -4
- package/src/transport/fixml/fixml-session-msg-factory.ts +2 -2
- package/src/transport/fixml/fixml-session.ts +2 -2
- package/src/transport/fixml/index.ts +0 -2
- package/src/transport/http/html-options.ts +8 -0
- package/src/transport/http/html-route.ts +6 -0
- package/src/transport/http/http-acceptor-listener.ts +42 -0
- package/src/transport/http/http-acceptor.ts +5 -2
- package/src/transport/http/http-adapter.ts +7 -0
- package/src/transport/http/http-initiator.ts +40 -25
- package/src/transport/http/http-json-sample-adapter.ts +7 -2
- package/src/transport/http/http-transaction.ts +1 -1
- package/src/transport/http/http-transport-description.ts +9 -0
- package/src/transport/http/index.ts +1 -0
- package/src/transport/index.ts +11 -10
- package/src/transport/msg-application.ts +13 -0
- package/src/transport/msg-transmitter.ts +5 -5
- package/src/transport/{a-session-msg-factory.ts → session/a-session-msg-factory.ts} +4 -4
- package/src/transport/session/fix-session-state-args.ts +9 -0
- package/src/transport/{fix-session-state.ts → session/fix-session-state.ts} +4 -44
- package/src/transport/{fix-session.ts → session/fix-session.ts} +10 -7
- package/src/transport/{make-fixl-session.ts → session/make-fix-session.ts} +1 -1
- package/src/transport/session/session-description.ts +18 -0
- package/src/transport/{fix-msg-factory.ts → session/session-msg-factory.ts} +2 -2
- package/src/transport/session/session-state.ts +25 -0
- package/src/transport/tcp/index.ts +3 -2
- package/src/transport/tcp/recovering-tcp-initiator.ts +24 -13
- package/src/transport/tcp/tcp-acceptor-listener.ts +45 -0
- package/src/transport/tcp/tcp-acceptor.ts +11 -10
- package/src/transport/tcp/tcp-initiator-connector.ts +71 -0
- package/src/transport/tcp/tcp-initiator.ts +10 -6
- package/src/transport/tcp/tcp-transport-description.ts +7 -0
- package/src/transport/tcp/tls-options-factory.ts +55 -0
- package/src/transport/tcp/tls-options.ts +9 -51
- package/src/transport/tick-action.ts +8 -0
- package/src/util/definition-factory.ts +47 -0
- package/src/util/dictionary-path.ts +4 -0
- package/src/util/index.ts +1 -1
- package/src/util/json-helper.ts +14 -4
- package/src/util/message-generator.ts +6 -3
- package/src/util/replay.ts +26 -21
- package/tsconfig.json +2 -0
- package/dist/buffer/ascii-chars.js.map +0 -1
- package/dist/dictionary/fields-dispatch.js +0 -40
- package/dist/dictionary/fields-dispatch.js.map +0 -1
- package/dist/sample/tcp/recovering-skeleton/respawn-2.d.ts +0 -2
- package/dist/sample/tcp/recovering-skeleton/respawn-2.js +0 -3
- package/dist/sample/tcp/recovering-skeleton/respawn-2.js.map +0 -1
- package/dist/store/fix-msg-ascii-store-recovery.d.ts +0 -12
- package/dist/store/fix-msg-ascii-store-recovery.js +0 -60
- package/dist/store/fix-msg-ascii-store-recovery.js.map +0 -1
- package/dist/store/fix-msg-ascii-store-replay.d.ts +0 -13
- package/dist/store/fix-msg-ascii-store-replay.js +0 -60
- package/dist/store/fix-msg-ascii-store-replay.js.map +0 -1
- package/dist/store/fix-replay-record.d.ts +0 -12
- package/dist/store/fix-replay-record.js +0 -12
- package/dist/store/fix-replay-record.js.map +0 -1
- package/dist/store/fix-resend-record.d.ts +0 -12
- package/dist/store/fix-resend-record.js +0 -12
- package/dist/store/fix-resend-record.js.map +0 -1
- package/dist/store/replay-record.d.ts +0 -6
- package/dist/store/replay-record.js.map +0 -1
- package/dist/store/store-replay-record.d.ts +0 -12
- package/dist/store/store-replay-record.js +0 -12
- package/dist/store/store-replay-record.js.map +0 -1
- package/dist/tcp/tls-options.d.ts +0 -5
- package/dist/tcp/tls-options.js +0 -45
- package/dist/tcp/tls-options.js.map +0 -1
- package/dist/test/ascii-encode.test.d.ts +0 -1
- package/dist/test/ascii-encode.test.js.map +0 -1
- package/dist/test/ascii-store-recovery.test.d.ts +0 -1
- package/dist/test/ascii-store-recovery.test.js +0 -50
- package/dist/test/ascii-store-recovery.test.js.map +0 -1
- package/dist/transport/ascii-session-msg-factory.d.ts +0 -16
- package/dist/transport/ascii-session-msg-factory.js +0 -47
- package/dist/transport/ascii-session-msg-factory.js.map +0 -1
- package/dist/transport/fixml/acceptor.d.ts +0 -3
- package/dist/transport/fixml/acceptor.js +0 -38
- package/dist/transport/fixml/acceptor.js.map +0 -1
- package/dist/transport/fixml-session-msg-factory.d.ts +0 -13
- package/dist/transport/fixml-session-msg-factory.js +0 -68
- package/dist/transport/fixml-session-msg-factory.js.map +0 -1
- package/dist/transport/make-config.d.ts +0 -4
- package/dist/transport/make-config.js +0 -31
- package/dist/transport/make-config.js.map +0 -1
- package/dist/transport/make-fixl-session.js.map +0 -1
- package/dist/transport/msg-transport.js +0 -57
- package/dist/transport/msg-transport.js.map +0 -1
- package/dist/transport/tcp/acceptor.d.ts +0 -3
- package/dist/transport/tcp/acceptor.js +0 -40
- package/dist/transport/tcp/acceptor.js.map +0 -1
- package/dist/transport/tcp/initiator.d.ts +0 -3
- package/dist/transport/tcp/initiator.js +0 -67
- package/dist/transport/tcp/initiator.js.map +0 -1
- package/dist/transport/tcp/recovering-initiator.d.ts +0 -17
- package/dist/transport/tcp/recovering-initiator.js +0 -30
- package/dist/transport/tcp/recovering-initiator.js.map +0 -1
- package/dist/transport/tcp/recovering_initiator.d.ts +0 -12
- package/dist/transport/tcp/recovering_initiator.js +0 -25
- package/dist/transport/tcp/recovering_initiator.js.map +0 -1
- package/dist/transport/tcp/resilient-initiator.d.ts +0 -12
- package/dist/transport/tcp/resilient-initiator.js +0 -41
- package/dist/transport/tcp/resilient-initiator.js.map +0 -1
- package/dist/types/FIX4.4/quickfix/set/header.d.ts +0 -31
- package/dist/types/FIX4.4/quickfix/set/header.js.map +0 -1
- package/dist/types/FIX4.4/quickfix/set/trailer.d.ts +0 -6
- package/dist/types/FIX4.4/quickfix/set/trailer.js.map +0 -1
- package/dist/util/dictionary-definitions.d.ts +0 -8
- package/dist/util/dictionary-definitions.js +0 -51
- package/dist/util/dictionary-definitions.js.map +0 -1
- package/src/dictionary/fields-dispatch.ts +0 -45
- package/src/sample/launcher.ts +0 -56
- package/src/transport/fixml/acceptor.ts +0 -29
- package/src/transport/make-config.ts +0 -19
- package/src/transport/msg-transport.ts +0 -67
- package/src/transport/session-description.ts +0 -70
- package/src/transport/tcp/acceptor.ts +0 -31
- package/src/transport/tcp/initiator.ts +0 -59
- package/src/util/dictionary-definitions.ts +0 -41
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
require("reflect-metadata");
|
|
13
|
+
const types_1 = require("../../types");
|
|
14
|
+
const setup_1 = require("../env/setup");
|
|
15
|
+
const experiment_1 = require("../env/experiment");
|
|
16
|
+
const skeleton_runner_1 = require("../env/skeleton-runner");
|
|
17
|
+
const logonMsg = '8=FIX4.4|9=0000136|35=A|49=init-comp|56=accept-comp|34=1|57=fix|52=20180902-12:25:28.980|98=0|108=30|141=Y|553=js-client|554=pwd-client|10=177|';
|
|
18
|
+
const heartbeat = '8=FIX4.4|9=0000123|35=0|49=init-comp|56=accept-comp|34=1|57=fix|52=20180902-12:25:59.161|112=Sun, 02 Sep 2018 12:25:59 GMT|10=95|';
|
|
19
|
+
let setup = null;
|
|
20
|
+
let experiment = null;
|
|
21
|
+
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
22
|
+
setup = new setup_1.Setup();
|
|
23
|
+
yield setup.init();
|
|
24
|
+
experiment = new experiment_1.Experiment(setup);
|
|
25
|
+
}), 30000);
|
|
26
|
+
class ParsingResult {
|
|
27
|
+
constructor(event, msgType, view) {
|
|
28
|
+
this.event = event;
|
|
29
|
+
this.msgType = msgType;
|
|
30
|
+
this.view = view;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function clientToServerWaitFirstMessage(type, obj) {
|
|
34
|
+
return new Promise((resolve, reject) => {
|
|
35
|
+
const clt = experiment.client.transport;
|
|
36
|
+
const svt = experiment.server.transport;
|
|
37
|
+
clt.transmitter.on('error', (e) => {
|
|
38
|
+
reject(e);
|
|
39
|
+
});
|
|
40
|
+
svt.receiver.on('msg', (msgType, view) => {
|
|
41
|
+
resolve(new ParsingResult('msg', msgType, view.clone()));
|
|
42
|
+
});
|
|
43
|
+
clt.receiver.on('error', (e) => {
|
|
44
|
+
reject(e);
|
|
45
|
+
});
|
|
46
|
+
clt.transmitter.send(type, obj);
|
|
47
|
+
experiment.client.transport.end();
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function runSkeletons(logoutSeconds = 1, followOn = null) {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const runner = new skeleton_runner_1.SkeletonRunner(experiment, logoutSeconds);
|
|
53
|
+
runner.sendText(followOn);
|
|
54
|
+
yield runner.wait();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
test('end to end logon', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
58
|
+
const lo = experiment.client.config.factory.logon();
|
|
59
|
+
const res = yield clientToServerWaitFirstMessage(types_1.MsgType.Logon, lo);
|
|
60
|
+
expect(res.event).toEqual('msg');
|
|
61
|
+
expect(res.msgType).toEqual('A');
|
|
62
|
+
const received = res.view.toObject();
|
|
63
|
+
expect(received).toBeTruthy();
|
|
64
|
+
delete received['StandardHeader'];
|
|
65
|
+
delete received['StandardTrailer'];
|
|
66
|
+
expect(received).toEqual(lo);
|
|
67
|
+
}));
|
|
68
|
+
test('session send resendRequest when logged on', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
69
|
+
const runner = new skeleton_runner_1.SkeletonRunner(experiment, 2);
|
|
70
|
+
const factory = experiment.client.config.factory;
|
|
71
|
+
const resend = factory.resendRequest(1, 2);
|
|
72
|
+
runner.sendMsg(types_1.MsgType.ResendRequest, resend);
|
|
73
|
+
try {
|
|
74
|
+
const cViews = experiment.client.views;
|
|
75
|
+
const sViews = experiment.server.views;
|
|
76
|
+
yield runner.wait();
|
|
77
|
+
const last = experiment.client.views[experiment.client.views.length - 1];
|
|
78
|
+
expect(last).toBeTruthy();
|
|
79
|
+
const clientResets = countOfType('SequenceReset', cViews);
|
|
80
|
+
const serverResets = countOfType('SequenceReset', sViews);
|
|
81
|
+
expect(clientResets).toEqual(1);
|
|
82
|
+
expect(serverResets).toEqual(0);
|
|
83
|
+
}
|
|
84
|
+
catch (e) {
|
|
85
|
+
expect(true).toEqual(false);
|
|
86
|
+
}
|
|
87
|
+
}));
|
|
88
|
+
test('session send logon when logged on', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
89
|
+
const runner = new skeleton_runner_1.SkeletonRunner(experiment, 2);
|
|
90
|
+
const logon = experiment.client.config.factory.logon();
|
|
91
|
+
runner.sendMsg(types_1.MsgType.Logon, logon);
|
|
92
|
+
try {
|
|
93
|
+
yield runner.wait();
|
|
94
|
+
}
|
|
95
|
+
catch (e) {
|
|
96
|
+
expect(experiment.server.errors.length).toEqual(1);
|
|
97
|
+
}
|
|
98
|
+
}));
|
|
99
|
+
test('session logon / logout', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
100
|
+
yield runSkeletons();
|
|
101
|
+
const cViews = experiment.client.views;
|
|
102
|
+
const sViews = experiment.server.views;
|
|
103
|
+
expect(experiment.client.errors.length).toEqual(0);
|
|
104
|
+
expect(experiment.server.errors.length).toEqual(0);
|
|
105
|
+
expect(cViews.length).toEqual(2);
|
|
106
|
+
expect(sViews.length).toEqual(2);
|
|
107
|
+
expect(cViews[0].segment.name).toEqual('Logon');
|
|
108
|
+
expect(cViews[1].segment.name).toEqual('Logout');
|
|
109
|
+
expect(sViews[0].segment.name).toEqual('Logon');
|
|
110
|
+
expect(sViews[1].segment.name).toEqual('Logout');
|
|
111
|
+
}));
|
|
112
|
+
function checkSeqNos(views) {
|
|
113
|
+
const seqNo = views.map((v) => v.getView('StandardHeader').toObject().MsgSeqNum);
|
|
114
|
+
expect(seqNo).toBeTruthy();
|
|
115
|
+
const delta = seqNo.reduce((c, latest) => {
|
|
116
|
+
return latest - c === 1 ? c + 1 : c - 1;
|
|
117
|
+
}, 0);
|
|
118
|
+
expect(delta).toEqual(seqNo.length);
|
|
119
|
+
}
|
|
120
|
+
test('seq No OK', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
121
|
+
yield runSkeletons();
|
|
122
|
+
const cviews = experiment.client.views;
|
|
123
|
+
const sviews = experiment.server.views;
|
|
124
|
+
expect(cviews.length >= 2).toEqual(true);
|
|
125
|
+
expect(sviews.length >= 2).toEqual(true);
|
|
126
|
+
checkSeqNos(cviews);
|
|
127
|
+
checkSeqNos(sviews);
|
|
128
|
+
}));
|
|
129
|
+
function mutateSeqNo(description, type, o) {
|
|
130
|
+
switch (type) {
|
|
131
|
+
case 'StandardHeader': {
|
|
132
|
+
const hdr = o;
|
|
133
|
+
if (hdr.MsgSeqNum === 2) {
|
|
134
|
+
hdr.MsgSeqNum = 0;
|
|
135
|
+
}
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return o;
|
|
140
|
+
}
|
|
141
|
+
test('out of seq logout', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
142
|
+
experiment.clientFactory.mutator = mutateSeqNo;
|
|
143
|
+
yield runSkeletons();
|
|
144
|
+
const cviews = experiment.client.views;
|
|
145
|
+
const sviews = experiment.server.views;
|
|
146
|
+
expect(cviews.length).toEqual(1);
|
|
147
|
+
expect(cviews[0].segment.name).toEqual('Logon');
|
|
148
|
+
expect(sviews.length).toEqual(2);
|
|
149
|
+
expect(sviews[0].segment.name).toEqual('Logon');
|
|
150
|
+
expect(sviews[1].segment.name).toEqual('Logout');
|
|
151
|
+
}));
|
|
152
|
+
function countOfType(type, views) {
|
|
153
|
+
return views.reduce((c, v) => {
|
|
154
|
+
return v.segment.name === type ? c + 1 : c;
|
|
155
|
+
}, 0);
|
|
156
|
+
}
|
|
157
|
+
function mutateRemoveRequiredHeartBtInt(description, type, o) {
|
|
158
|
+
switch (type) {
|
|
159
|
+
case 'A': {
|
|
160
|
+
const logon = o;
|
|
161
|
+
delete logon['HeartBtInt'];
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return o;
|
|
166
|
+
}
|
|
167
|
+
test('client logon reject missing 108', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
168
|
+
experiment.clientFactory.mutator = mutateRemoveRequiredHeartBtInt;
|
|
169
|
+
yield runSkeletons(2);
|
|
170
|
+
const cviews = experiment.client.views;
|
|
171
|
+
const sviews = experiment.server.views;
|
|
172
|
+
expect(cviews.length === 1).toEqual(true);
|
|
173
|
+
expect(sviews.length === 1).toEqual(true);
|
|
174
|
+
expect(cviews[0].segment.name).toEqual('Reject');
|
|
175
|
+
expect(sviews[0].segment.name).toEqual('Logon');
|
|
176
|
+
const reject = cviews[0].toObject();
|
|
177
|
+
expect(reject.SessionRejectReason === types_1.SessionRejectReason.RequiredTagMissing);
|
|
178
|
+
expect(reject.Text).toEqual('msgType A missing required tag 108');
|
|
179
|
+
}), 10000);
|
|
180
|
+
test('client unknown msg type', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
181
|
+
const at = experiment.client.transport.transmitter;
|
|
182
|
+
const changed = logonMsg.replace('35=A', '35=ZZ').replace('34=1', `34=${at.msgSeqNum + 1}`);
|
|
183
|
+
yield runSkeletons(2, changed);
|
|
184
|
+
const cviews = experiment.client.views;
|
|
185
|
+
const sviews = experiment.server.views;
|
|
186
|
+
expect(cviews.length).toEqual(3);
|
|
187
|
+
expect(sviews.length).toEqual(3);
|
|
188
|
+
expect(cviews[0].segment.name).toEqual('Logon');
|
|
189
|
+
expect(cviews[1].segment.name).toEqual('Reject');
|
|
190
|
+
expect(sviews[0].segment.name).toEqual('Logon');
|
|
191
|
+
expect(sviews[1].segment.name).toEqual('unknown');
|
|
192
|
+
const reject = cviews[1].toObject();
|
|
193
|
+
expect(reject.SessionRejectReason === types_1.SessionRejectReason.InvalidMsgType);
|
|
194
|
+
expect(reject.Text).toEqual('msgType ZZ unknown');
|
|
195
|
+
}), 10000);
|
|
196
|
+
test('heartbeat invalid tag', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
197
|
+
const at = experiment.client.transport.transmitter;
|
|
198
|
+
const changed = heartbeat.replace('112=', '999=').replace('34=1', `34=${at.msgSeqNum + 1}`);
|
|
199
|
+
yield runSkeletons(2, changed);
|
|
200
|
+
const cviews = experiment.client.views;
|
|
201
|
+
const sviews = experiment.server.views;
|
|
202
|
+
expect(cviews.length === 3).toEqual(true);
|
|
203
|
+
expect(sviews.length === 3).toEqual(true);
|
|
204
|
+
expect(cviews[0].segment.name).toEqual('Logon');
|
|
205
|
+
expect(cviews[1].segment.name).toEqual('Reject');
|
|
206
|
+
expect(sviews[0].segment.name).toEqual('Logon');
|
|
207
|
+
expect(sviews[1].segment.name).toEqual('Heartbeat');
|
|
208
|
+
const reject = experiment.client.views[1].toObject();
|
|
209
|
+
expect(reject.SessionRejectReason === types_1.SessionRejectReason.InvalidTagNumber);
|
|
210
|
+
checkSeqNos(cviews);
|
|
211
|
+
checkSeqNos(sviews);
|
|
212
|
+
}), 10000);
|
|
213
|
+
test('heartbeat invalid sender comp', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
214
|
+
const at = experiment.client.transport.transmitter;
|
|
215
|
+
const changed = heartbeat.replace('49=init-comp', '49=init-not!').replace('34=1', `34=${at.msgSeqNum + 1}`);
|
|
216
|
+
yield runSkeletons(2, changed);
|
|
217
|
+
const cviews = experiment.client.views;
|
|
218
|
+
const sviews = experiment.server.views;
|
|
219
|
+
expect(cviews.length === 3).toEqual(true);
|
|
220
|
+
expect(sviews.length === 3).toEqual(true);
|
|
221
|
+
expect(cviews[0].segment.name).toEqual('Logon');
|
|
222
|
+
expect(cviews[1].segment.name).toEqual('Reject');
|
|
223
|
+
expect(sviews[0].segment.name).toEqual('Logon');
|
|
224
|
+
expect(sviews[1].segment.name).toEqual('Heartbeat');
|
|
225
|
+
const reject = cviews[1].toObject();
|
|
226
|
+
expect(reject.SessionRejectReason === types_1.SessionRejectReason.CompIDProblem);
|
|
227
|
+
checkSeqNos(cviews);
|
|
228
|
+
checkSeqNos(sviews);
|
|
229
|
+
}), 10000);
|
|
230
|
+
test('client heartbeats to server', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
231
|
+
const preset = experiment.client.config.description.HeartBtInt;
|
|
232
|
+
experiment.client.config.description.HeartBtInt = 2;
|
|
233
|
+
yield runSkeletons(6);
|
|
234
|
+
const cviews = experiment.client.views;
|
|
235
|
+
const sviews = experiment.server.views;
|
|
236
|
+
expect(cviews.length === 2).toEqual(true);
|
|
237
|
+
expect(sviews.length > 2).toEqual(true);
|
|
238
|
+
const serverReceivesHeartbeats = countOfType('Heartbeat', sviews);
|
|
239
|
+
expect(serverReceivesHeartbeats >= 2 && serverReceivesHeartbeats <= 4).toEqual(true);
|
|
240
|
+
checkSeqNos(cviews);
|
|
241
|
+
checkSeqNos(sviews);
|
|
242
|
+
experiment.client.config.description.HeartBtInt = preset;
|
|
243
|
+
}), 10000);
|
|
244
|
+
test('server heartbeats to client', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
245
|
+
const preset = experiment.server.config.description.HeartBtInt;
|
|
246
|
+
experiment.server.config.description.HeartBtInt = 2;
|
|
247
|
+
yield runSkeletons(6);
|
|
248
|
+
const cviews = experiment.client.views;
|
|
249
|
+
const sviews = experiment.server.views;
|
|
250
|
+
expect(sviews.length === 2).toEqual(true);
|
|
251
|
+
expect(cviews.length > 2).toEqual(true);
|
|
252
|
+
const clientReceivesHeartbeats = countOfType('Heartbeat', cviews);
|
|
253
|
+
expect(clientReceivesHeartbeats >= 2 && clientReceivesHeartbeats <= 4).toEqual(true);
|
|
254
|
+
checkSeqNos(cviews);
|
|
255
|
+
checkSeqNos(sviews);
|
|
256
|
+
experiment.server.config.description.HeartBtInt = preset;
|
|
257
|
+
}), 10000);
|
|
258
|
+
test('client server heartbeat', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
259
|
+
const preset = experiment.server.config.description.HeartBtInt;
|
|
260
|
+
experiment.server.config.description.HeartBtInt = 5;
|
|
261
|
+
experiment.client.config.description.HeartBtInt = 2;
|
|
262
|
+
yield runSkeletons(8);
|
|
263
|
+
const cviews = experiment.client.views;
|
|
264
|
+
const sviews = experiment.server.views;
|
|
265
|
+
expect(sviews.length > 2).toEqual(true);
|
|
266
|
+
expect(cviews.length > 2).toEqual(true);
|
|
267
|
+
const clientReceivesHeartbeats = countOfType('Heartbeat', cviews);
|
|
268
|
+
const clientReceivesTestRequest = countOfType('TestRequest', cviews);
|
|
269
|
+
const clientTotal = clientReceivesHeartbeats + clientReceivesTestRequest;
|
|
270
|
+
const serverReceivesHeartbeats = countOfType('Heartbeat', sviews);
|
|
271
|
+
const serverReceivesTestRequest = countOfType('TestRequest', sviews);
|
|
272
|
+
const serverTotal = serverReceivesHeartbeats + serverReceivesTestRequest;
|
|
273
|
+
expect(clientTotal >= 1 && clientReceivesHeartbeats <= 4).toEqual(true);
|
|
274
|
+
expect(serverTotal >= 3 && serverReceivesHeartbeats <= 4).toEqual(true);
|
|
275
|
+
checkSeqNos(cviews);
|
|
276
|
+
checkSeqNos(sviews);
|
|
277
|
+
experiment.server.config.description.HeartBtInt = preset;
|
|
278
|
+
experiment.client.config.description.HeartBtInt = preset;
|
|
279
|
+
}), 15000);
|
|
280
|
+
//# sourceMappingURL=session.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.test.js","sourceRoot":"","sources":["../../../src/test/ascii/session.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,4BAAyB;AAIzB,uCAA0D;AAK1D,wCAAoC;AACpC,kDAA8C;AAC9C,4DAAuD;AAEvD,MAAM,QAAQ,GAAW,iJAAiJ,CAAA;AAC1K,MAAM,SAAS,GAAW,mIAAmI,CAAA;AAE7J,IAAI,KAAK,GAAU,IAAI,CAAA;AACvB,IAAI,U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CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACvC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACvC,MAAM,wBAAwB,GAAG,WAAW,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;IACjE,MAAM,yBAAyB,GAAG,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;IACpE,MAAM,WAAW,GAAG,wBAAwB,GAAG,yBAAyB,CAAA;IACxE,MAAM,wBAAwB,GAAG,WAAW,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;IACjE,MAAM,yBAAyB,GAAG,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;IACpE,MAAM,WAAW,GAAG,wBAAwB,GAAG,yBAAyB,CAAA;IACxE,MAAM,CAAC,WAAW,IAAI,CAAC,IAAI,wBAAwB,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACvE,MAAM,CAAC,WAAW,IAAI,CAAC,IAAI,wBAAwB,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACvE,WAAW,CAAC,MAAM,CAAC,CAAA;IACnB,WAAW,CAAC,MAAM,CAAC,CAAA;IACnB,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,GAAG,MAAM,CAAA;IACxD,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,GAAG,MAAM,CAAA;AAC1D,CAAC,CAAA,EAAE,KAAK,CAAC,CAAA","sourcesContent":["import 'reflect-metadata'\r\n\r\nimport { MsgView } from '../../buffer'\r\nimport { ISessionDescription } from '../../transport'\r\nimport { MsgType, SessionRejectReason } from '../../types'\r\nimport { ILooseObject } from '../../collections/collection'\r\nimport { IStandardHeader, IReject, ILogon } from '../../types/FIX4.4/repo'\r\n\r\nimport { AsciiMsgTransmitter } from '../../transport/ascii/ascii-msg-transmitter'\r\nimport { Setup } from '../env/setup'\r\nimport { Experiment } from '../env/experiment'\r\nimport { SkeletonRunner } from '../env/skeleton-runner'\r\n\r\nconst logonMsg: string = '8=FIX4.4|9=0000136|35=A|49=init-comp|56=accept-comp|34=1|57=fix|52=20180902-12:25:28.980|98=0|108=30|141=Y|553=js-client|554=pwd-client|10=177|'\r\nconst heartbeat: string = '8=FIX4.4|9=0000123|35=0|49=init-comp|56=accept-comp|34=1|57=fix|52=20180902-12:25:59.161|112=Sun, 02 Sep 2018 12:25:59 GMT|10=95|'\r\n\r\nlet setup: Setup = null\r\nlet experiment: Experiment = null\r\n\r\nbeforeEach(async () => {\r\n setup = new Setup()\r\n await setup.init()\r\n experiment = new Experiment(setup)\r\n}, 30000)\r\n\r\nclass ParsingResult {\r\n constructor (\r\n public readonly event: string,\r\n public readonly msgType: string,\r\n public readonly view: MsgView) {\r\n }\r\n}\r\n\r\nfunction clientToServerWaitFirstMessage (type: string, obj: ILooseObject): Promise<ParsingResult> {\r\n return new Promise<any>((resolve, reject) => {\r\n const clt = experiment.client.transport\r\n const svt = experiment.server.transport\r\n clt.transmitter.on('error', (e: Error) => {\r\n reject(e)\r\n })\r\n svt.receiver.on('msg', (msgType: string, view: MsgView) => {\r\n resolve(new ParsingResult('msg', msgType, view.clone()))\r\n })\r\n clt.receiver.on('error', (e: Error) => {\r\n reject(e)\r\n })\r\n clt.transmitter.send(type, obj)\r\n experiment.client.transport.end()\r\n })\r\n}\r\n\r\nasync function runSkeletons (logoutSeconds: number = 1, followOn: string = null) {\r\n const runner: SkeletonRunner = new SkeletonRunner(experiment, logoutSeconds)\r\n runner.sendText(followOn)\r\n await runner.wait()\r\n}\r\n\r\ntest('end to end logon', async () => {\r\n const lo = experiment.client.config.factory.logon()\r\n const res: ParsingResult = await clientToServerWaitFirstMessage(MsgType.Logon, lo)\r\n expect(res.event).toEqual('msg')\r\n expect(res.msgType).toEqual('A')\r\n const received = res.view.toObject()\r\n expect(received).toBeTruthy()\r\n delete received['StandardHeader']\r\n delete received['StandardTrailer']\r\n expect(received).toEqual(lo)\r\n})\r\n\r\ntest('session send resendRequest when logged on', async () => {\r\n const runner: SkeletonRunner = new SkeletonRunner(experiment, 2)\r\n const factory = experiment.client.config.factory\r\n const resend = factory.resendRequest(1, 2)\r\n runner.sendMsg(MsgType.ResendRequest, resend)\r\n try {\r\n const cViews = experiment.client.views\r\n const sViews = experiment.server.views\r\n await runner.wait()\r\n const last = experiment.client.views[experiment.client.views.length - 1]\r\n expect(last).toBeTruthy()\r\n const clientResets = countOfType('SequenceReset', cViews)\r\n const serverResets = countOfType('SequenceReset', sViews)\r\n expect(clientResets).toEqual(1)\r\n expect(serverResets).toEqual(0)\r\n } catch (e) {\r\n expect(true).toEqual(false)\r\n }\r\n})\r\n\r\ntest('session send logon when logged on', async () => {\r\n const runner: SkeletonRunner = new SkeletonRunner(experiment, 2)\r\n const logon = experiment.client.config.factory.logon()\r\n runner.sendMsg(MsgType.Logon, logon)\r\n try {\r\n await runner.wait()\r\n } catch (e) {\r\n expect(experiment.server.errors.length).toEqual(1)\r\n }\r\n})\r\n\r\ntest('session logon / logout', async () => {\r\n await runSkeletons()\r\n const cViews = experiment.client.views\r\n const sViews = experiment.server.views\r\n\r\n expect(experiment.client.errors.length).toEqual(0)\r\n expect(experiment.server.errors.length).toEqual(0)\r\n\r\n // both sides should now have logged on and logged off\r\n expect(cViews.length).toEqual(2)\r\n expect(sViews.length).toEqual(2)\r\n\r\n expect(cViews[0].segment.name).toEqual('Logon')\r\n expect(cViews[1].segment.name).toEqual('Logout')\r\n\r\n expect(sViews[0].segment.name).toEqual('Logon')\r\n expect(sViews[1].segment.name).toEqual('Logout')\r\n})\r\n\r\nfunction checkSeqNos (views: MsgView[]) {\r\n const seqNo: number[] = views.map((v: MsgView) => (v.getView('StandardHeader').toObject() as IStandardHeader).MsgSeqNum)\r\n expect(seqNo).toBeTruthy()\r\n const delta = seqNo.reduce((c: number, latest: number) => {\r\n return latest - c === 1 ? c + 1 : c - 1\r\n }, 0)\r\n expect(delta).toEqual(seqNo.length)\r\n}\r\n\r\ntest('seq No OK', async () => {\r\n await runSkeletons()\r\n const cviews = experiment.client.views\r\n const sviews = experiment.server.views\r\n // both sides should now have logged on and logged off\r\n expect(cviews.length >= 2).toEqual(true)\r\n expect(sviews.length >= 2).toEqual(true)\r\n checkSeqNos(cviews)\r\n checkSeqNos(sviews)\r\n})\r\n\r\nfunction mutateSeqNo (description: ISessionDescription, type: string, o: ILooseObject): ILooseObject {\r\n switch (type) {\r\n case 'StandardHeader': {\r\n const hdr = o as IStandardHeader\r\n if (hdr.MsgSeqNum === 2) {\r\n hdr.MsgSeqNum = 0\r\n }\r\n break\r\n }\r\n }\r\n return o\r\n}\r\n\r\ntest('out of seq logout', async () => {\r\n experiment.clientFactory.mutator = mutateSeqNo\r\n await runSkeletons()\r\n const cviews = experiment.client.views\r\n const sviews = experiment.server.views\r\n // both sides should now have logged on but out of seq logout will terminate sessions so no logout returned\r\n expect(cviews.length).toEqual(1)\r\n expect(cviews[0].segment.name).toEqual('Logon')\r\n expect(sviews.length).toEqual(2)\r\n expect(sviews[0].segment.name).toEqual('Logon')\r\n expect(sviews[1].segment.name).toEqual('Logout')\r\n})\r\n\r\nfunction countOfType (type: string, views: MsgView[]): number {\r\n return views.reduce((c: number, v: MsgView) => {\r\n return v.segment.name === type ? c + 1 : c\r\n }, 0)\r\n}\r\n\r\nfunction mutateRemoveRequiredHeartBtInt (description: ISessionDescription, type: string, o: ILooseObject): ILooseObject {\r\n switch (type) {\r\n case 'A': {\r\n const logon = o as ILogon\r\n delete logon['HeartBtInt']\r\n break\r\n }\r\n }\r\n return o\r\n}\r\n\r\ntest('client logon reject missing 108', async () => {\r\n experiment.clientFactory.mutator = mutateRemoveRequiredHeartBtInt\r\n await runSkeletons(2)\r\n // client sends logon, server rejects\r\n const cviews = experiment.client.views\r\n const sviews = experiment.server.views\r\n expect(cviews.length === 1).toEqual(true)\r\n expect(sviews.length === 1).toEqual(true)\r\n expect(cviews[0].segment.name).toEqual('Reject')\r\n expect(sviews[0].segment.name).toEqual('Logon')\r\n const reject: IReject = cviews[0].toObject()\r\n expect(reject.SessionRejectReason === SessionRejectReason.RequiredTagMissing)\r\n expect(reject.Text).toEqual('msgType A missing required tag 108')\r\n}, 10000)\r\n\r\n// transport.transmitter\r\n\r\ntest('client unknown msg type', async () => {\r\n const at = experiment.client.transport.transmitter as AsciiMsgTransmitter\r\n const changed = logonMsg.replace('35=A', '35=ZZ').replace('34=1', `34=${at.msgSeqNum + 1}`)\r\n await runSkeletons(2, changed)\r\n const cviews = experiment.client.views\r\n const sviews = experiment.server.views\r\n // client sends logon, server rejects\r\n expect(cviews.length).toEqual(3)\r\n expect(sviews.length).toEqual(3)\r\n expect(cviews[0].segment.name).toEqual('Logon')\r\n expect(cviews[1].segment.name).toEqual('Reject')\r\n expect(sviews[0].segment.name).toEqual('Logon')\r\n expect(sviews[1].segment.name).toEqual('unknown')\r\n const reject: IReject = cviews[1].toObject()\r\n expect(reject.SessionRejectReason === SessionRejectReason.InvalidMsgType)\r\n expect(reject.Text).toEqual('msgType ZZ unknown')\r\n}, 10000)\r\n\r\ntest('heartbeat invalid tag', async () => {\r\n const at = experiment.client.transport.transmitter as AsciiMsgTransmitter\r\n const changed = heartbeat.replace('112=', '999=').replace('34=1', `34=${at.msgSeqNum + 1}`)\r\n await runSkeletons(2, changed)\r\n const cviews = experiment.client.views\r\n const sviews = experiment.server.views\r\n expect(cviews.length === 3).toEqual(true)\r\n expect(sviews.length === 3).toEqual(true)\r\n expect(cviews[0].segment.name).toEqual('Logon')\r\n expect(cviews[1].segment.name).toEqual('Reject')\r\n expect(sviews[0].segment.name).toEqual('Logon')\r\n expect(sviews[1].segment.name).toEqual('Heartbeat')\r\n const reject: IReject = experiment.client.views[1].toObject()\r\n expect(reject.SessionRejectReason === SessionRejectReason.InvalidTagNumber)\r\n checkSeqNos(cviews)\r\n checkSeqNos(sviews)\r\n}, 10000)\r\n\r\ntest('heartbeat invalid sender comp', async () => {\r\n const at = experiment.client.transport.transmitter as AsciiMsgTransmitter\r\n const changed = heartbeat.replace('49=init-comp', '49=init-not!').replace('34=1', `34=${at.msgSeqNum + 1}`)\r\n await runSkeletons(2, changed)\r\n const cviews = experiment.client.views\r\n const sviews = experiment.server.views\r\n expect(cviews.length === 3).toEqual(true)\r\n expect(sviews.length === 3).toEqual(true)\r\n expect(cviews[0].segment.name).toEqual('Logon')\r\n expect(cviews[1].segment.name).toEqual('Reject')\r\n expect(sviews[0].segment.name).toEqual('Logon')\r\n expect(sviews[1].segment.name).toEqual('Heartbeat')\r\n const reject: IReject = cviews[1].toObject()\r\n expect(reject.SessionRejectReason === SessionRejectReason.CompIDProblem)\r\n checkSeqNos(cviews)\r\n checkSeqNos(sviews)\r\n}, 10000)\r\n\r\n// client will send heartbeats to server, server with 30 second heartbeat will not heartbeat\r\ntest('client heartbeats to server', async () => {\r\n const preset = experiment.client.config.description.HeartBtInt\r\n experiment.client.config.description.HeartBtInt = 2\r\n await runSkeletons(6)\r\n const cviews = experiment.client.views\r\n const sviews = experiment.server.views\r\n // both sides should now have logged on and logged off\r\n expect(cviews.length === 2).toEqual(true)\r\n expect(sviews.length > 2).toEqual(true)\r\n const serverReceivesHeartbeats = countOfType('Heartbeat', sviews)\r\n expect(serverReceivesHeartbeats >= 2 && serverReceivesHeartbeats <= 4).toEqual(true)\r\n checkSeqNos(cviews)\r\n checkSeqNos(sviews)\r\n experiment.client.config.description.HeartBtInt = preset\r\n}, 10000)\r\n\r\ntest('server heartbeats to client', async () => {\r\n const preset = experiment.server.config.description.HeartBtInt\r\n experiment.server.config.description.HeartBtInt = 2\r\n await runSkeletons(6)\r\n // both sides should now have logged on and logged off\r\n const cviews = experiment.client.views\r\n const sviews = experiment.server.views\r\n expect(sviews.length === 2).toEqual(true)\r\n expect(cviews.length > 2).toEqual(true)\r\n const clientReceivesHeartbeats = countOfType('Heartbeat', cviews)\r\n expect(clientReceivesHeartbeats >= 2 && clientReceivesHeartbeats <= 4).toEqual(true)\r\n checkSeqNos(cviews)\r\n checkSeqNos(sviews)\r\n experiment.server.config.description.HeartBtInt = preset\r\n}, 10000)\r\n\r\ntest('client server heartbeat', async () => {\r\n const preset = experiment.server.config.description.HeartBtInt\r\n experiment.server.config.description.HeartBtInt = 5\r\n experiment.client.config.description.HeartBtInt = 2\r\n await runSkeletons(8)\r\n const cviews = experiment.client.views\r\n const sviews = experiment.server.views\r\n // both sides should now have logged on and logged off\r\n expect(sviews.length > 2).toEqual(true)\r\n expect(cviews.length > 2).toEqual(true)\r\n const clientReceivesHeartbeats = countOfType('Heartbeat', cviews)\r\n const clientReceivesTestRequest = countOfType('TestRequest', cviews)\r\n const clientTotal = clientReceivesHeartbeats + clientReceivesTestRequest\r\n const serverReceivesHeartbeats = countOfType('Heartbeat', sviews)\r\n const serverReceivesTestRequest = countOfType('TestRequest', sviews)\r\n const serverTotal = serverReceivesHeartbeats + serverReceivesTestRequest\r\n expect(clientTotal >= 1 && clientReceivesHeartbeats <= 4).toEqual(true)\r\n expect(serverTotal >= 3 && serverReceivesHeartbeats <= 4).toEqual(true)\r\n checkSeqNos(cviews)\r\n checkSeqNos(sviews)\r\n experiment.server.config.description.HeartBtInt = preset\r\n experiment.client.config.description.HeartBtInt = preset\r\n}, 15000)\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
require("reflect-metadata");
|
|
13
|
+
const buffer_1 = require("../../buffer");
|
|
14
|
+
const ascii_1 = require("../../buffer/ascii");
|
|
15
|
+
const buffer = new buffer_1.ElasticBuffer();
|
|
16
|
+
let timeFormatter;
|
|
17
|
+
const localDateTime = new Date(2010, 7, 6, 15, 55, 59, 123);
|
|
18
|
+
const localDateTimeMidnight = new Date(2010, 4, 6, 0, 0, 0, 0);
|
|
19
|
+
const localDate = new Date(localDateTime.getFullYear(), localDateTime.getMonth(), localDateTime.getDate(), 0, 0, 0, 0);
|
|
20
|
+
const localTime = new Date(0, 0, 0, localDateTime.getHours(), localDateTime.getMinutes(), localDateTime.getSeconds(), localDateTime.getMilliseconds());
|
|
21
|
+
const localTimeMidnight = new Date(0, 0, 0, localDateTimeMidnight.getHours(), localDateTimeMidnight.getMinutes(), localDateTimeMidnight.getSeconds(), localDateTimeMidnight.getMilliseconds());
|
|
22
|
+
const utcDateTime = new Date(Date.UTC(localDateTime.getFullYear(), localDateTime.getMonth(), localDateTime.getDate(), localDateTime.getHours(), localDateTime.getMinutes(), localDateTime.getSeconds(), localDateTime.getMilliseconds()));
|
|
23
|
+
const utcTime = new Date(Date.UTC(0, 0, 0, localDateTime.getHours(), localDateTime.getMinutes(), localDateTime.getSeconds(), localDateTime.getMilliseconds()));
|
|
24
|
+
const utcDate = new Date(Date.UTC(localDateTime.getFullYear(), localDateTime.getMonth(), localDateTime.getDate()));
|
|
25
|
+
const dateLength = 4 + 2 + 2;
|
|
26
|
+
const timeLength = 2 + 1 + 2 + 1 + 2 + 1 + 3;
|
|
27
|
+
const dateTimeLength = dateLength + 1 + timeLength;
|
|
28
|
+
beforeAll(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
29
|
+
timeFormatter = new ascii_1.TimeFormatter(buffer);
|
|
30
|
+
}));
|
|
31
|
+
test('check LocalDate', () => {
|
|
32
|
+
buffer.reset();
|
|
33
|
+
timeFormatter.writeLocalDate(localDateTime);
|
|
34
|
+
expect(buffer.getPos()).toEqual(dateLength);
|
|
35
|
+
expect(buffer.toString()).toEqual('20100806');
|
|
36
|
+
expect(timeFormatter.getLocalDate(0)).toEqual(localDate);
|
|
37
|
+
});
|
|
38
|
+
test('check LocalTime', () => {
|
|
39
|
+
buffer.reset();
|
|
40
|
+
timeFormatter.writeLocalTime(localDateTime);
|
|
41
|
+
expect(buffer.getPos()).toEqual(timeLength);
|
|
42
|
+
expect(buffer.toString()).toEqual('15:55:59.123');
|
|
43
|
+
expect(timeFormatter.getLocalTime(0)).toEqual(localTime);
|
|
44
|
+
});
|
|
45
|
+
test('check LocalTime Midnight', () => {
|
|
46
|
+
buffer.reset();
|
|
47
|
+
timeFormatter.writeLocalTime(localDateTimeMidnight);
|
|
48
|
+
expect(buffer.getPos()).toEqual(timeLength);
|
|
49
|
+
expect(buffer.toString()).toEqual('00:00:00.000');
|
|
50
|
+
expect(timeFormatter.getLocalTime(0)).toEqual(localTimeMidnight);
|
|
51
|
+
});
|
|
52
|
+
test('check LocalTimestamp Midnight', () => {
|
|
53
|
+
buffer.reset();
|
|
54
|
+
timeFormatter.writeLocalTimestamp(localDateTimeMidnight);
|
|
55
|
+
expect(buffer.getPos()).toEqual(dateTimeLength);
|
|
56
|
+
expect(buffer.toString()).toEqual('20100506-00:00:00.000');
|
|
57
|
+
expect(timeFormatter.getLocalTimestamp(0, dateTimeLength)).toEqual(localDateTimeMidnight);
|
|
58
|
+
});
|
|
59
|
+
test('check LocalTimestamp', () => {
|
|
60
|
+
buffer.reset();
|
|
61
|
+
timeFormatter.writeLocalTimestamp(localDateTime);
|
|
62
|
+
expect(buffer.getPos()).toEqual(dateTimeLength);
|
|
63
|
+
expect(buffer.toString()).toEqual('20100806-15:55:59.123');
|
|
64
|
+
expect(timeFormatter.getLocalTimestamp(0, dateTimeLength)).toEqual(localDateTime);
|
|
65
|
+
});
|
|
66
|
+
test('check UtcDate', () => {
|
|
67
|
+
buffer.reset();
|
|
68
|
+
timeFormatter.writeUtcDate(utcDateTime);
|
|
69
|
+
expect(buffer.getPos()).toEqual(dateLength);
|
|
70
|
+
expect(buffer.toString()).toEqual('20100806');
|
|
71
|
+
expect(timeFormatter.getUtcDate(0)).toEqual(utcDate);
|
|
72
|
+
});
|
|
73
|
+
test('check LocalTime', () => {
|
|
74
|
+
buffer.reset();
|
|
75
|
+
timeFormatter.writeUtcTime(utcDateTime);
|
|
76
|
+
expect(buffer.getPos()).toEqual(timeLength);
|
|
77
|
+
expect(buffer.toString()).toEqual('15:55:59.123');
|
|
78
|
+
expect(timeFormatter.getUtcTime(0)).toEqual(utcTime);
|
|
79
|
+
});
|
|
80
|
+
//# sourceMappingURL=time-formatter.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-formatter.test.js","sourceRoot":"","sources":["../../../src/test/ascii/time-formatter.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,4BAAyB;AAEzB,yCAA4C;AAC5C,8CAAkE;AAElE,MAAM,MAAM,GAAG,IAAI,sBAAa,EAAE,CAAA;AAClC,IAAI,aAA6B,CAAA;AACjC,MAAM,aAAa,GAAS,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;AACjE,MAAM,qBAAqB,GAAS,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AACpE,MAAM,SAAS,GAAS,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,EAAE,aAAa,CAAC,QAAQ,EAAE,EAAE,aAAa,CAAC,OAAO,EAAE,EAAE,CAAC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e,EAAE,GAAG,EAAE;IACzB,MAAM,CAAC,KAAK,EAAE,CAAA;IACd,aAAa,CAAC,YAAY,CAAC,WAAW,CAAC,CAAA;IACvC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IAC3C,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IAC7C,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;AACtD,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC3B,MAAM,CAAC,KAAK,EAAE,CAAA;IACd,aAAa,CAAC,YAAY,CAAC,WAAW,CAAC,CAAA;IACvC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IAC3C,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAA;IACjD,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;AACtD,CAAC,CAAC,CAAA","sourcesContent":["import 'reflect-metadata'\r\n\r\nimport { ElasticBuffer } from '../../buffer'\r\nimport { ITimeFormatter, TimeFormatter } from '../../buffer/ascii'\r\n\r\nconst buffer = new ElasticBuffer()\r\nlet timeFormatter: ITimeFormatter\r\nconst localDateTime: Date = new Date(2010, 7, 6, 15, 55, 59, 123)\r\nconst localDateTimeMidnight: Date = new Date(2010, 4, 6, 0, 0, 0, 0)\r\nconst localDate: Date = new Date(localDateTime.getFullYear(), localDateTime.getMonth(), localDateTime.getDate(), 0, 0, 0, 0)\r\nconst localTime: Date = new Date(0, 0, 0, localDateTime.getHours(), localDateTime.getMinutes(), localDateTime.getSeconds(), localDateTime.getMilliseconds())\r\nconst localTimeMidnight: Date = new Date(0, 0, 0, localDateTimeMidnight.getHours(), localDateTimeMidnight.getMinutes(), localDateTimeMidnight.getSeconds(), localDateTimeMidnight.getMilliseconds())\r\nconst utcDateTime: Date = new Date(Date.UTC(localDateTime.getFullYear(), localDateTime.getMonth(), localDateTime.getDate(), localDateTime.getHours(), localDateTime.getMinutes(), localDateTime.getSeconds(), localDateTime.getMilliseconds()))\r\nconst utcTime: Date = new Date(Date.UTC(0, 0, 0, localDateTime.getHours(), localDateTime.getMinutes(), localDateTime.getSeconds(), localDateTime.getMilliseconds()))\r\nconst utcDate: Date = new Date(Date.UTC(localDateTime.getFullYear(), localDateTime.getMonth(), localDateTime.getDate()))\r\nconst dateLength = 4 + 2 + 2\r\nconst timeLength = 2 + 1 + 2 + 1 + 2 + 1 + 3\r\nconst dateTimeLength = dateLength + 1 + timeLength\r\n\r\nbeforeAll(async () => {\r\n timeFormatter = new TimeFormatter(buffer)\r\n})\r\n\r\ntest('check LocalDate', () => {\r\n buffer.reset()\r\n timeFormatter.writeLocalDate(localDateTime)\r\n expect(buffer.getPos()).toEqual(dateLength)\r\n expect(buffer.toString()).toEqual('20100806')\r\n expect(timeFormatter.getLocalDate(0)).toEqual(localDate)\r\n})\r\n\r\ntest('check LocalTime', () => {\r\n buffer.reset()\r\n timeFormatter.writeLocalTime(localDateTime)\r\n expect(buffer.getPos()).toEqual(timeLength)\r\n expect(buffer.toString()).toEqual('15:55:59.123')\r\n expect(timeFormatter.getLocalTime(0)).toEqual(localTime)\r\n})\r\n\r\ntest('check LocalTime Midnight', () => {\r\n buffer.reset()\r\n timeFormatter.writeLocalTime(localDateTimeMidnight)\r\n expect(buffer.getPos()).toEqual(timeLength)\r\n expect(buffer.toString()).toEqual('00:00:00.000')\r\n expect(timeFormatter.getLocalTime(0)).toEqual(localTimeMidnight)\r\n})\r\n\r\ntest('check LocalTimestamp Midnight', () => {\r\n buffer.reset()\r\n timeFormatter.writeLocalTimestamp(localDateTimeMidnight)\r\n expect(buffer.getPos()).toEqual(dateTimeLength)\r\n expect(buffer.toString()).toEqual('20100506-00:00:00.000')\r\n expect(timeFormatter.getLocalTimestamp(0, dateTimeLength)).toEqual(localDateTimeMidnight)\r\n})\r\n\r\ntest('check LocalTimestamp', () => {\r\n buffer.reset()\r\n timeFormatter.writeLocalTimestamp(localDateTime)\r\n expect(buffer.getPos()).toEqual(dateTimeLength)\r\n expect(buffer.toString()).toEqual('20100806-15:55:59.123')\r\n expect(timeFormatter.getLocalTimestamp(0, dateTimeLength)).toEqual(localDateTime)\r\n})\r\n\r\ntest('check UtcDate', () => {\r\n buffer.reset()\r\n timeFormatter.writeUtcDate(utcDateTime)\r\n expect(buffer.getPos()).toEqual(dateLength)\r\n expect(buffer.toString()).toEqual('20100806')\r\n expect(timeFormatter.getUtcDate(0)).toEqual(utcDate)\r\n})\r\n\r\ntest('check LocalTime', () => {\r\n buffer.reset()\r\n timeFormatter.writeUtcTime(utcDateTime)\r\n expect(buffer.getPos()).toEqual(timeLength)\r\n expect(buffer.toString()).toEqual('15:55:59.123')\r\n expect(timeFormatter.getUtcTime(0)).toEqual(utcTime)\r\n})\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
require("reflect-metadata");
|
|
13
|
+
const path = require("path");
|
|
14
|
+
const quickfix_1 = require("../../types/FIX4.4/quickfix");
|
|
15
|
+
const setup_1 = require("../env/setup");
|
|
16
|
+
const root = path.join(__dirname, '../../../data');
|
|
17
|
+
let definitions;
|
|
18
|
+
let session;
|
|
19
|
+
let views;
|
|
20
|
+
let structure;
|
|
21
|
+
let view;
|
|
22
|
+
let setup = null;
|
|
23
|
+
beforeAll(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
24
|
+
setup = new setup_1.Setup('session/qf-fix44.json', null);
|
|
25
|
+
yield setup.init();
|
|
26
|
+
definitions = setup.definitions;
|
|
27
|
+
session = setup.client.transmitter;
|
|
28
|
+
views = yield setup.client.replayer.replayFixFile(path.join(root, 'examples/FIX.4.4/quickfix/md-data-snapshot/fix.txt'));
|
|
29
|
+
if (views && views.length > 0) {
|
|
30
|
+
view = views[0];
|
|
31
|
+
structure = view.structure;
|
|
32
|
+
}
|
|
33
|
+
}), 45000);
|
|
34
|
+
test('expect a structure from fix msg', () => {
|
|
35
|
+
expect(structure).toBeTruthy();
|
|
36
|
+
});
|
|
37
|
+
test('get NoMDEntries directly - expect an array', () => {
|
|
38
|
+
const noMDEntriesView = view.getView('NoMDEntries');
|
|
39
|
+
expect(noMDEntriesView).toBeTruthy();
|
|
40
|
+
const noMDEntries = noMDEntriesView.toObject();
|
|
41
|
+
expect(Array.isArray(noMDEntries)).toEqual(true);
|
|
42
|
+
expect(noMDEntries.length).toEqual(2);
|
|
43
|
+
});
|
|
44
|
+
test('get NoMDEntries via MDFullGrp - array within a component', () => {
|
|
45
|
+
const mdFullGrp = view.getView('MDFullGrp');
|
|
46
|
+
expect(mdFullGrp).toBeTruthy();
|
|
47
|
+
const mdFullGrpAsObject = mdFullGrp.toObject();
|
|
48
|
+
const noMDEntries = mdFullGrpAsObject.NoMDEntries;
|
|
49
|
+
expect(Array.isArray(noMDEntries)).toEqual(true);
|
|
50
|
+
expect(noMDEntries.length).toEqual(2);
|
|
51
|
+
});
|
|
52
|
+
function getMdEntriesObjects() {
|
|
53
|
+
const noMDEntriesView = view.getView('NoMDEntries');
|
|
54
|
+
expect(noMDEntriesView).toBeTruthy();
|
|
55
|
+
const noMDEntries = noMDEntriesView.toObject();
|
|
56
|
+
expect(Array.isArray(noMDEntries)).toEqual(true);
|
|
57
|
+
expect(noMDEntries.length).toEqual(2);
|
|
58
|
+
return noMDEntries;
|
|
59
|
+
}
|
|
60
|
+
test('get UTCDATEONLY from NoMDEntries instance 1', () => {
|
|
61
|
+
const noMdEntriesAsObjects = getMdEntriesObjects();
|
|
62
|
+
const noMDEntriesView = view.getView('NoMDEntries');
|
|
63
|
+
const mmEntryView = noMDEntriesView.getGroupInstance(1);
|
|
64
|
+
const instance = noMdEntriesAsObjects[1];
|
|
65
|
+
const mmEntryDateAsString = mmEntryView.getString('MDEntryDate');
|
|
66
|
+
expect(mmEntryDateAsString).toEqual('20210129');
|
|
67
|
+
expect(mmEntryView.getString(272)).toEqual('20210129');
|
|
68
|
+
const asUtc = new Date(Date.UTC(2021, 0, 29));
|
|
69
|
+
expect(instance.MDEntryDate).toEqual(asUtc);
|
|
70
|
+
});
|
|
71
|
+
test('get UTCTIMEONLY from NoMDEntries instance 0', () => {
|
|
72
|
+
const noMdEntriesAsObjects = getMdEntriesObjects();
|
|
73
|
+
const noMDEntriesView = view.getView('NoMDEntries');
|
|
74
|
+
const mmEntryView = noMDEntriesView.getGroupInstance(0);
|
|
75
|
+
const instance = noMdEntriesAsObjects[0];
|
|
76
|
+
const mmEntryTimeAsString = mmEntryView.getString('MDEntryTime');
|
|
77
|
+
expect(mmEntryTimeAsString).toEqual('19:45:19.852');
|
|
78
|
+
expect(mmEntryView.getString(273)).toEqual('19:45:19.852');
|
|
79
|
+
const asUtc = new Date(Date.UTC(0, 0, 0, 19, 45, 19, 852));
|
|
80
|
+
expect(instance.MDEntryTime).toEqual(asUtc);
|
|
81
|
+
});
|
|
82
|
+
test('get UTCTIMESTAMP from NoMDEntries instance 1', () => {
|
|
83
|
+
const noMdEntriesAsObjects = getMdEntriesObjects();
|
|
84
|
+
const noMDEntriesView = view.getView('NoMDEntries');
|
|
85
|
+
const mmEntryView = noMDEntriesView.getGroupInstance(1);
|
|
86
|
+
const instance = noMdEntriesAsObjects[1];
|
|
87
|
+
const mmEntryExpireTimeAsString = mmEntryView.getString('ExpireTime');
|
|
88
|
+
expect(mmEntryExpireTimeAsString).toEqual('20210129-19:45:19.000');
|
|
89
|
+
expect(mmEntryView.getString(126)).toEqual('20210129-19:45:19.000');
|
|
90
|
+
const asUtc = new Date(Date.UTC(2021, 0, 29, 19, 45, 19, 0));
|
|
91
|
+
const d = instance.ExpireTime;
|
|
92
|
+
expect(d).toEqual(asUtc);
|
|
93
|
+
});
|
|
94
|
+
test('get MinQty from NoMDEntries instance 1', () => {
|
|
95
|
+
const noMdEntriesAsObjects = getMdEntriesObjects();
|
|
96
|
+
const noMDEntriesView = view.getView('NoMDEntries');
|
|
97
|
+
const mmEntryView = noMDEntriesView.getGroupInstance(1);
|
|
98
|
+
const instance = noMdEntriesAsObjects[1];
|
|
99
|
+
const mmEntryMinQtyAsString = mmEntryView.getString('MinQty');
|
|
100
|
+
expect(mmEntryMinQtyAsString).toEqual('9.6478');
|
|
101
|
+
expect(mmEntryView.getString(110)).toEqual('9.6478');
|
|
102
|
+
expect(instance.MinQty).toEqual(9.6478);
|
|
103
|
+
});
|
|
104
|
+
test('get selection tags one call - tag ids', () => {
|
|
105
|
+
const [a, b, c, d] = view.getTypedTags([8, 9, 35, 49]);
|
|
106
|
+
expect(a).toEqual('FIX4.4');
|
|
107
|
+
expect(b).toEqual(3957);
|
|
108
|
+
expect(c).toEqual('W');
|
|
109
|
+
expect(d).toEqual('init-comp');
|
|
110
|
+
});
|
|
111
|
+
test('get selection tags one call - tag names', () => {
|
|
112
|
+
const [a, b, c, d, e, f] = view.getTypedTags([
|
|
113
|
+
'BeginString',
|
|
114
|
+
'BodyLength',
|
|
115
|
+
'MsgType',
|
|
116
|
+
'MsgSeqNum',
|
|
117
|
+
'MDReqID',
|
|
118
|
+
'Symbol'
|
|
119
|
+
]);
|
|
120
|
+
expect(a).toEqual('FIX4.4');
|
|
121
|
+
expect(b).toEqual(3957);
|
|
122
|
+
expect(c).toEqual('W');
|
|
123
|
+
expect(d).toEqual(1);
|
|
124
|
+
expect(e).toEqual('Lorem');
|
|
125
|
+
expect(f).toEqual('ipsum');
|
|
126
|
+
});
|
|
127
|
+
test('nested view fetch', () => {
|
|
128
|
+
const legGrpView = view.getView('InstrmtLegGrp.NoLegs');
|
|
129
|
+
expect(legGrpView).toBeTruthy();
|
|
130
|
+
const legGrp = legGrpView.toObject();
|
|
131
|
+
expect(legGrp).toBeTruthy();
|
|
132
|
+
expect(Array.isArray(legGrp));
|
|
133
|
+
expect(legGrp.length).toEqual(3);
|
|
134
|
+
});
|
|
135
|
+
function toFixMessage(o, msg) {
|
|
136
|
+
session.encodeMessage(msg.msgType, o);
|
|
137
|
+
return session.buffer.toString();
|
|
138
|
+
}
|
|
139
|
+
function BidOfferRequest(symbol) {
|
|
140
|
+
return {
|
|
141
|
+
MDReqID: '1',
|
|
142
|
+
SubscriptionRequestType: quickfix_1.SubscriptionRequestType.SnapshotPlusUpdates,
|
|
143
|
+
MarketDepth: 0,
|
|
144
|
+
MDReqGrp: {
|
|
145
|
+
NoMDEntryTypes: [
|
|
146
|
+
{
|
|
147
|
+
MDEntryType: quickfix_1.MDEntryType.Bid
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
MDEntryType: quickfix_1.MDEntryType.Offer
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
InstrmtMDReqGrp: {
|
|
155
|
+
NoRelatedSym: [
|
|
156
|
+
{
|
|
157
|
+
Instrument: {
|
|
158
|
+
Symbol: symbol
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
test('market data request', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
166
|
+
const mdr = BidOfferRequest('EUR/USD');
|
|
167
|
+
const def = definitions.message.get('MarketDataRequest');
|
|
168
|
+
const fix = toFixMessage(mdr, def);
|
|
169
|
+
expect(fix).toBeTruthy();
|
|
170
|
+
const res = yield setup.client.parseText(fix);
|
|
171
|
+
expect(res.event).toEqual('msg');
|
|
172
|
+
expect(res.msgType).toEqual(def.msgType);
|
|
173
|
+
const gv = res.view.getView('MDReqGrp');
|
|
174
|
+
expect(gv).toBeTruthy();
|
|
175
|
+
const s = gv.toString();
|
|
176
|
+
const newLine = require('os').EOL;
|
|
177
|
+
expect(s).toEqual(`[0] 267 (NoMDEntryTypes) = 2, [1] 269 (MDEntryType) = 0[Bid]${newLine}[2] 269 (MDEntryType) = 1[Offer]`);
|
|
178
|
+
const iv = res.view.getView('InstrmtMDReqGrp.NoRelatedSym');
|
|
179
|
+
expect(iv).toBeTruthy();
|
|
180
|
+
const s2 = iv.toString();
|
|
181
|
+
expect(s2).toEqual(`[0] 146 (NoRelatedSym) = 1, [1] 55 (Symbol) = EUR/USD${newLine}`);
|
|
182
|
+
}));
|
|
183
|
+
//# sourceMappingURL=view-decode.test.js.map
|