@nsshunt/stsappframework 3.1.213 → 3.1.215
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/dist/commonTypes.js.map +1 -1
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/dist/masterprocessbase.js +33 -46
- package/dist/masterprocessbase.js.map +1 -1
- package/dist/processbase.js +29 -0
- package/dist/processbase.js.map +1 -1
- package/dist/serverprocessbase.js +51 -66
- package/dist/serverprocessbase.js.map +1 -1
- package/dist/stscontrollerbase.js.map +1 -1
- package/dist/{server.js → stsexpressserver.js} +1 -1
- package/dist/stsexpressserver.js.map +1 -0
- package/dist/stslatencycontroller.js.map +1 -1
- package/dist/stslatencyroute.js.map +1 -1
- package/dist/stsrouterbase.js.map +1 -1
- package/dist/vitesttesting/appSingleWSS.js +2 -1
- package/dist/vitesttesting/appSingleWSS.js.map +1 -1
- package/dist/workerprocessbase.js.map +1 -1
- package/package.json +5 -6
- package/src/commonTypes.ts +2 -0
- package/src/index.ts +1 -7
- package/src/masterprocessbase.ts +42 -55
- package/src/processbase.ts +32 -1
- package/src/serverprocessbase.ts +55 -72
- package/src/{socketIoServerHelper.ts → socketIoServerHelper.ts_bak} +1 -2
- package/src/stscontrollerbase.ts +1 -2
- package/src/{server.ts → stsexpressserver.ts} +1 -2
- package/src/stslatencycontroller.ts +1 -2
- package/src/stslatencyroute.ts +1 -2
- package/src/stsrouterbase.ts +1 -2
- package/src/vitesttesting/appSingleWSS.ts +2 -1
- package/src/workerprocessbase.ts +1 -2
- package/types/commonTypes.d.ts +0 -15
- package/types/commonTypes.d.ts.map +1 -1
- package/types/index.d.ts +0 -7
- package/types/index.d.ts.map +1 -1
- package/types/masterprocessbase.d.ts.map +1 -1
- package/types/processbase.d.ts +3 -0
- package/types/processbase.d.ts.map +1 -1
- package/types/serverprocessbase.d.ts +3 -1
- package/types/serverprocessbase.d.ts.map +1 -1
- package/types/stscontrollerbase.d.ts.map +1 -1
- package/types/{server.d.ts → stsexpressserver.d.ts} +1 -1
- package/types/stsexpressserver.d.ts.map +1 -0
- package/types/stslatencycontroller.d.ts.map +1 -1
- package/types/stslatencyroute.d.ts.map +1 -1
- package/types/stsrouterbase.d.ts.map +1 -1
- package/types/vitesttesting/appSingleWSS.d.ts.map +1 -1
- package/types/workerprocessbase.d.ts.map +1 -1
- package/dist/authDefs.js +0 -33
- package/dist/authDefs.js.map +0 -1
- package/dist/gRPC/ststest/protos/auth_sample.js +0 -3
- package/dist/gRPC/ststest/protos/auth_sample.js.map +0 -1
- package/dist/gRPC/ststest/protos/echo.js +0 -3
- package/dist/gRPC/ststest/protos/echo.js.map +0 -1
- package/dist/gRPC/ststest/protos/grpc/examples/echo/Echo.js +0 -4
- package/dist/gRPC/ststest/protos/grpc/examples/echo/Echo.js.map +0 -1
- package/dist/gRPC/ststest/protos/grpc/examples/echo/EchoRequest.js +0 -4
- package/dist/gRPC/ststest/protos/grpc/examples/echo/EchoRequest.js.map +0 -1
- package/dist/gRPC/ststest/protos/grpc/examples/echo/EchoResponse.js +0 -4
- package/dist/gRPC/ststest/protos/grpc/examples/echo/EchoResponse.js.map +0 -1
- package/dist/gRPC/ststest/protos/grpc/testing/Request.js +0 -4
- package/dist/gRPC/ststest/protos/grpc/testing/Request.js.map +0 -1
- package/dist/gRPC/ststest/protos/grpc/testing/Response.js +0 -4
- package/dist/gRPC/ststest/protos/grpc/testing/Response.js.map +0 -1
- package/dist/gRPC/ststest/protos/grpc/testing/TestService.js +0 -4
- package/dist/gRPC/ststest/protos/grpc/testing/TestService.js.map +0 -1
- package/dist/gRPC/ststest/protos/hellostreamingworld/HelloReply.js +0 -4
- package/dist/gRPC/ststest/protos/hellostreamingworld/HelloReply.js.map +0 -1
- package/dist/gRPC/ststest/protos/hellostreamingworld/HelloRequest.js +0 -4
- package/dist/gRPC/ststest/protos/hellostreamingworld/HelloRequest.js.map +0 -1
- package/dist/gRPC/ststest/protos/hellostreamingworld/MultiGreeter.js +0 -4
- package/dist/gRPC/ststest/protos/hellostreamingworld/MultiGreeter.js.map +0 -1
- package/dist/gRPC/ststest/protos/hellostreamingworld.js +0 -3
- package/dist/gRPC/ststest/protos/hellostreamingworld.js.map +0 -1
- package/dist/gRPC/ststest/protos/helloworld/Greeter.js +0 -4
- package/dist/gRPC/ststest/protos/helloworld/Greeter.js.map +0 -1
- package/dist/gRPC/ststest/protos/helloworld/HelloReply.js +0 -4
- package/dist/gRPC/ststest/protos/helloworld/HelloReply.js.map +0 -1
- package/dist/gRPC/ststest/protos/helloworld/HelloRequest.js +0 -4
- package/dist/gRPC/ststest/protos/helloworld/HelloRequest.js.map +0 -1
- package/dist/gRPC/ststest/protos/helloworld.js +0 -3
- package/dist/gRPC/ststest/protos/helloworld.js.map +0 -1
- package/dist/gRPC/ststest/protos/keyvaluestore/KeyValueStore.js +0 -4
- package/dist/gRPC/ststest/protos/keyvaluestore/KeyValueStore.js.map +0 -1
- package/dist/gRPC/ststest/protos/keyvaluestore/Request.js +0 -4
- package/dist/gRPC/ststest/protos/keyvaluestore/Request.js.map +0 -1
- package/dist/gRPC/ststest/protos/keyvaluestore/Response.js +0 -4
- package/dist/gRPC/ststest/protos/keyvaluestore/Response.js.map +0 -1
- package/dist/gRPC/ststest/protos/keyvaluestore.js +0 -3
- package/dist/gRPC/ststest/protos/keyvaluestore.js.map +0 -1
- package/dist/gRPC/ststest/protos/route_guide.js +0 -3
- package/dist/gRPC/ststest/protos/route_guide.js.map +0 -1
- package/dist/gRPC/ststest/protos/routeguide/Feature.js +0 -4
- package/dist/gRPC/ststest/protos/routeguide/Feature.js.map +0 -1
- package/dist/gRPC/ststest/protos/routeguide/Point.js +0 -4
- package/dist/gRPC/ststest/protos/routeguide/Point.js.map +0 -1
- package/dist/gRPC/ststest/protos/routeguide/Rectangle.js +0 -4
- package/dist/gRPC/ststest/protos/routeguide/Rectangle.js.map +0 -1
- package/dist/gRPC/ststest/protos/routeguide/RouteGuide.js +0 -4
- package/dist/gRPC/ststest/protos/routeguide/RouteGuide.js.map +0 -1
- package/dist/gRPC/ststest/protos/routeguide/RouteNote.js +0 -4
- package/dist/gRPC/ststest/protos/routeguide/RouteNote.js.map +0 -1
- package/dist/gRPC/ststest/protos/routeguide/RouteSummary.js +0 -4
- package/dist/gRPC/ststest/protos/routeguide/RouteSummary.js.map +0 -1
- package/dist/gRPC/ststest/src/commonTypes.js +0 -3
- package/dist/gRPC/ststest/src/commonTypes.js.map +0 -1
- package/dist/gRPC/ststest/src/greeter_client.js +0 -67
- package/dist/gRPC/ststest/src/greeter_client.js.map +0 -1
- package/dist/gRPC/ststest/src/greeter_server.js +0 -78
- package/dist/gRPC/ststest/src/greeter_server.js.map +0 -1
- package/dist/gRPC/ststest/src/route_guide_client.js +0 -258
- package/dist/gRPC/ststest/src/route_guide_client.js.map +0 -1
- package/dist/gRPC/ststest/src/route_guide_server.js +0 -237
- package/dist/gRPC/ststest/src/route_guide_server.js.map +0 -1
- package/dist/gRPC/ststest/src/route_guide_server2.js +0 -205
- package/dist/gRPC/ststest/src/route_guide_server2.js.map +0 -1
- package/dist/influxdb/influxDBManager.js +0 -304
- package/dist/influxdb/influxDBManager.js.map +0 -1
- package/dist/influxdb/influxDBManagerAgent.js +0 -14
- package/dist/influxdb/influxDBManagerAgent.js.map +0 -1
- package/dist/influxdb/influxDBManagerBase.js +0 -100
- package/dist/influxdb/influxDBManagerBase.js.map +0 -1
- package/dist/influxdb/influxDBManagerLambda.js +0 -17
- package/dist/influxdb/influxDBManagerLambda.js.map +0 -1
- package/dist/influxdb/influxDBManagerService.js +0 -14
- package/dist/influxdb/influxDBManagerService.js.map +0 -1
- package/dist/publishInstrumentsWebWorker.js +0 -159
- package/dist/publishInstrumentsWebWorker.js.map +0 -1
- package/dist/server.js.map +0 -1
- package/dist/socketIoServerHelper.js +0 -125
- package/dist/socketIoServerHelper.js.map +0 -1
- package/dist/tcpclient/app.js +0 -23
- package/dist/tcpclient/app.js.map +0 -1
- package/dist/tcpclient/app2.js +0 -57
- package/dist/tcpclient/app2.js.map +0 -1
- package/dist/tcpserver/app.js +0 -16
- package/dist/tcpserver/app.js.map +0 -1
- package/dist/tcpserver/appConfig.js +0 -83
- package/dist/tcpserver/appConfig.js.map +0 -1
- package/dist/tcpserver/appmaster.js +0 -446
- package/dist/tcpserver/appmaster.js.map +0 -1
- package/dist/testertesting/app.js +0 -284
- package/dist/testertesting/app.js.map +0 -1
- package/dist/testertesting/commonTypes.js +0 -47
- package/dist/testertesting/commonTypes.js.map +0 -1
- package/dist/testertesting/telemetryProcessor.js +0 -111
- package/dist/testertesting/telemetryProcessor.js.map +0 -1
- package/dist/testertesting/testCase01.js +0 -169
- package/dist/testertesting/testCase01.js.map +0 -1
- package/dist/testertesting/workerInstance.js +0 -263
- package/dist/testertesting/workerInstance.js.map +0 -1
- package/dist/testertesting/workerManager.js +0 -450
- package/dist/testertesting/workerManager.js.map +0 -1
- package/dist/testertesting/workerWorkerTestRunner01.js +0 -35
- package/dist/testertesting/workerWorkerTestRunner01.js.map +0 -1
- package/dist/testing/app.js +0 -18
- package/dist/testing/app.js.map +0 -1
- package/dist/testing/appConfig.js +0 -93
- package/dist/testing/appConfig.js.map +0 -1
- package/dist/testing/appTinyEmitter.js +0 -37
- package/dist/testing/appTinyEmitter.js.map +0 -1
- package/dist/testing/appWorkerWSS.js +0 -151
- package/dist/testing/appWorkerWSS.js.map +0 -1
- package/dist/testing/appredistest.js +0 -239
- package/dist/testing/appredistest.js.map +0 -1
- package/dist/testing/appsolo.js +0 -67
- package/dist/testing/appsolo.js.map +0 -1
- package/dist/testing/promiseTesting.js +0 -77
- package/dist/testing/promiseTesting.js.map +0 -1
- package/dist/testing/server.js +0 -15
- package/dist/testing/server.js.map +0 -1
- package/dist/testing/wsevents.js +0 -3
- package/dist/testing/wsevents.js.map +0 -1
- package/dist/webworkertesting/app.js +0 -44
- package/dist/webworkertesting/app.js.map +0 -1
- package/dist/webworkertesting/worker.js +0 -21
- package/dist/webworkertesting/worker.js.map +0 -1
- package/src/authDefs.ts +0 -37
- package/src/gRPC/ststest/protos/BUILD +0 -82
- package/src/gRPC/ststest/protos/README.md +0 -8
- package/src/gRPC/ststest/protos/auth_sample.proto +0 -42
- package/src/gRPC/ststest/protos/auth_sample.ts +0 -20
- package/src/gRPC/ststest/protos/echo.proto +0 -45
- package/src/gRPC/ststest/protos/echo.ts +0 -22
- package/src/gRPC/ststest/protos/grpc/examples/echo/Echo.ts +0 -55
- package/src/gRPC/ststest/protos/grpc/examples/echo/EchoRequest.ts +0 -10
- package/src/gRPC/ststest/protos/grpc/examples/echo/EchoResponse.ts +0 -10
- package/src/gRPC/ststest/protos/grpc/testing/Request.ts +0 -12
- package/src/gRPC/ststest/protos/grpc/testing/Response.ts +0 -12
- package/src/gRPC/ststest/protos/grpc/testing/TestService.ts +0 -27
- package/src/gRPC/ststest/protos/hellostreamingworld/HelloReply.ts +0 -10
- package/src/gRPC/ststest/protos/hellostreamingworld/HelloRequest.ts +0 -12
- package/src/gRPC/ststest/protos/hellostreamingworld/MultiGreeter.ts +0 -23
- package/src/gRPC/ststest/protos/hellostreamingworld.proto +0 -39
- package/src/gRPC/ststest/protos/hellostreamingworld.ts +0 -18
- package/src/gRPC/ststest/protos/helloworld/Greeter.ts +0 -35
- package/src/gRPC/ststest/protos/helloworld/HelloReply.ts +0 -10
- package/src/gRPC/ststest/protos/helloworld/HelloRequest.ts +0 -10
- package/src/gRPC/ststest/protos/helloworld.proto +0 -40
- package/src/gRPC/ststest/protos/helloworld.ts +0 -18
- package/src/gRPC/ststest/protos/keyvaluestore/KeyValueStore.ts +0 -23
- package/src/gRPC/ststest/protos/keyvaluestore/Request.ts +0 -10
- package/src/gRPC/ststest/protos/keyvaluestore/Response.ts +0 -10
- package/src/gRPC/ststest/protos/keyvaluestore.proto +0 -33
- package/src/gRPC/ststest/protos/keyvaluestore.ts +0 -18
- package/src/gRPC/ststest/protos/route_guide.proto +0 -111
- package/src/gRPC/ststest/protos/route_guide.ts +0 -21
- package/src/gRPC/ststest/protos/routeguide/Feature.ts +0 -13
- package/src/gRPC/ststest/protos/routeguide/Point.ts +0 -12
- package/src/gRPC/ststest/protos/routeguide/Rectangle.ts +0 -13
- package/src/gRPC/ststest/protos/routeguide/RouteGuide.ts +0 -58
- package/src/gRPC/ststest/protos/routeguide/RouteNote.ts +0 -13
- package/src/gRPC/ststest/protos/routeguide/RouteSummary.ts +0 -16
- package/src/gRPC/ststest/src/commonTypes.ts +0 -27
- package/src/gRPC/ststest/src/greeter_client.ts +0 -52
- package/src/gRPC/ststest/src/greeter_server.ts +0 -62
- package/src/gRPC/ststest/src/route_guide_client.ts +0 -266
- package/src/gRPC/ststest/src/route_guide_server.ts +0 -234
- package/src/gRPC/ststest/src/route_guide_server2.ts +0 -211
- package/src/influxdb/influxDBManager.ts +0 -334
- package/src/influxdb/influxDBManagerAgent.ts +0 -14
- package/src/influxdb/influxDBManagerBase.ts +0 -108
- package/src/influxdb/influxDBManagerLambda.ts +0 -17
- package/src/influxdb/influxDBManagerService.ts +0 -14
- package/src/publishInstrumentsWebWorker.ts +0 -157
- package/src/tcpclient/app.ts +0 -21
- package/src/tcpclient/app2.ts +0 -58
- package/src/tcpserver/app.ts +0 -11
- package/src/tcpserver/appConfig.ts +0 -99
- package/src/tcpserver/appmaster.ts +0 -503
- package/src/testertesting/app.ts +0 -349
- package/src/testertesting/commonTypes.ts +0 -236
- package/src/testertesting/telemetryProcessor.ts +0 -125
- package/src/testertesting/testCase01.ts +0 -207
- package/src/testertesting/workerInstance.ts +0 -297
- package/src/testertesting/workerManager.ts +0 -511
- package/src/testertesting/workerWorkerTestRunner01.ts +0 -34
- package/src/testing/app.ts +0 -14
- package/src/testing/appConfig.ts +0 -110
- package/src/testing/appTinyEmitter.ts +0 -57
- package/src/testing/appWorkerWSS.ts +0 -174
- package/src/testing/appredistest.ts +0 -304
- package/src/testing/appsolo.ts +0 -96
- package/src/testing/docker-compose.yml +0 -20
- package/src/testing/promiseTesting.ts +0 -86
- package/src/testing/server.ts +0 -17
- package/src/testing/wsevents.ts +0 -33
- package/src/webworkertesting/app.ts +0 -56
- package/src/webworkertesting/worker.ts +0 -24
- package/types/authDefs.d.ts +0 -29
- package/types/authDefs.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/auth_sample.d.ts +0 -19
- package/types/gRPC/ststest/protos/auth_sample.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/echo.d.ts +0 -21
- package/types/gRPC/ststest/protos/echo.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/grpc/examples/echo/Echo.d.ts +0 -43
- package/types/gRPC/ststest/protos/grpc/examples/echo/Echo.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/grpc/examples/echo/EchoRequest.d.ts +0 -7
- package/types/gRPC/ststest/protos/grpc/examples/echo/EchoRequest.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/grpc/examples/echo/EchoResponse.d.ts +0 -7
- package/types/gRPC/ststest/protos/grpc/examples/echo/EchoResponse.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/grpc/testing/Request.d.ts +0 -9
- package/types/gRPC/ststest/protos/grpc/testing/Request.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/grpc/testing/Response.d.ts +0 -9
- package/types/gRPC/ststest/protos/grpc/testing/Response.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/grpc/testing/TestService.d.ts +0 -21
- package/types/gRPC/ststest/protos/grpc/testing/TestService.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/hellostreamingworld/HelloReply.d.ts +0 -7
- package/types/gRPC/ststest/protos/hellostreamingworld/HelloReply.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/hellostreamingworld/HelloRequest.d.ts +0 -9
- package/types/gRPC/ststest/protos/hellostreamingworld/HelloRequest.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/hellostreamingworld/MultiGreeter.d.ts +0 -17
- package/types/gRPC/ststest/protos/hellostreamingworld/MultiGreeter.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/hellostreamingworld.d.ts +0 -17
- package/types/gRPC/ststest/protos/hellostreamingworld.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/helloworld/Greeter.d.ts +0 -27
- package/types/gRPC/ststest/protos/helloworld/Greeter.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/helloworld/HelloReply.d.ts +0 -7
- package/types/gRPC/ststest/protos/helloworld/HelloReply.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/helloworld/HelloRequest.d.ts +0 -7
- package/types/gRPC/ststest/protos/helloworld/HelloRequest.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/helloworld.d.ts +0 -17
- package/types/gRPC/ststest/protos/helloworld.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/keyvaluestore/KeyValueStore.d.ts +0 -17
- package/types/gRPC/ststest/protos/keyvaluestore/KeyValueStore.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/keyvaluestore/Request.d.ts +0 -7
- package/types/gRPC/ststest/protos/keyvaluestore/Request.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/keyvaluestore/Response.d.ts +0 -7
- package/types/gRPC/ststest/protos/keyvaluestore/Response.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/keyvaluestore.d.ts +0 -17
- package/types/gRPC/ststest/protos/keyvaluestore.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/route_guide.d.ts +0 -20
- package/types/gRPC/ststest/protos/route_guide.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/routeguide/Feature.d.ts +0 -10
- package/types/gRPC/ststest/protos/routeguide/Feature.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/routeguide/Point.d.ts +0 -9
- package/types/gRPC/ststest/protos/routeguide/Point.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/routeguide/Rectangle.d.ts +0 -10
- package/types/gRPC/ststest/protos/routeguide/Rectangle.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/routeguide/RouteGuide.d.ts +0 -46
- package/types/gRPC/ststest/protos/routeguide/RouteGuide.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/routeguide/RouteNote.d.ts +0 -10
- package/types/gRPC/ststest/protos/routeguide/RouteNote.d.ts.map +0 -1
- package/types/gRPC/ststest/protos/routeguide/RouteSummary.d.ts +0 -13
- package/types/gRPC/ststest/protos/routeguide/RouteSummary.d.ts.map +0 -1
- package/types/gRPC/ststest/src/commonTypes.d.ts +0 -23
- package/types/gRPC/ststest/src/commonTypes.d.ts.map +0 -1
- package/types/gRPC/ststest/src/greeter_client.d.ts +0 -3
- package/types/gRPC/ststest/src/greeter_client.d.ts.map +0 -1
- package/types/gRPC/ststest/src/greeter_server.d.ts +0 -3
- package/types/gRPC/ststest/src/greeter_server.d.ts.map +0 -1
- package/types/gRPC/ststest/src/route_guide_client.d.ts +0 -3
- package/types/gRPC/ststest/src/route_guide_client.d.ts.map +0 -1
- package/types/gRPC/ststest/src/route_guide_server.d.ts +0 -3
- package/types/gRPC/ststest/src/route_guide_server.d.ts.map +0 -1
- package/types/gRPC/ststest/src/route_guide_server2.d.ts +0 -3
- package/types/gRPC/ststest/src/route_guide_server2.d.ts.map +0 -1
- package/types/influxdb/influxDBManager.d.ts +0 -21
- package/types/influxdb/influxDBManager.d.ts.map +0 -1
- package/types/influxdb/influxDBManagerAgent.d.ts +0 -8
- package/types/influxdb/influxDBManagerAgent.d.ts.map +0 -1
- package/types/influxdb/influxDBManagerBase.d.ts +0 -14
- package/types/influxdb/influxDBManagerBase.d.ts.map +0 -1
- package/types/influxdb/influxDBManagerLambda.d.ts +0 -11
- package/types/influxdb/influxDBManagerLambda.d.ts.map +0 -1
- package/types/influxdb/influxDBManagerService.d.ts +0 -8
- package/types/influxdb/influxDBManagerService.d.ts.map +0 -1
- package/types/publishInstrumentsWebWorker.d.ts +0 -1
- package/types/publishInstrumentsWebWorker.d.ts.map +0 -1
- package/types/server.d.ts.map +0 -1
- package/types/socketIoServerHelper.d.ts +0 -20
- package/types/socketIoServerHelper.d.ts.map +0 -1
- package/types/tcpclient/app.d.ts +0 -2
- package/types/tcpclient/app.d.ts.map +0 -1
- package/types/tcpclient/app2.d.ts +0 -2
- package/types/tcpclient/app2.d.ts.map +0 -1
- package/types/tcpserver/app.d.ts +0 -2
- package/types/tcpserver/app.d.ts.map +0 -1
- package/types/tcpserver/appConfig.d.ts +0 -3
- package/types/tcpserver/appConfig.d.ts.map +0 -1
- package/types/tcpserver/appmaster.d.ts +0 -24
- package/types/tcpserver/appmaster.d.ts.map +0 -1
- package/types/testertesting/app.d.ts +0 -2
- package/types/testertesting/app.d.ts.map +0 -1
- package/types/testertesting/commonTypes.d.ts +0 -215
- package/types/testertesting/commonTypes.d.ts.map +0 -1
- package/types/testertesting/telemetryProcessor.d.ts +0 -6
- package/types/testertesting/telemetryProcessor.d.ts.map +0 -1
- package/types/testertesting/testCase01.d.ts +0 -20
- package/types/testertesting/testCase01.d.ts.map +0 -1
- package/types/testertesting/workerInstance.d.ts +0 -23
- package/types/testertesting/workerInstance.d.ts.map +0 -1
- package/types/testertesting/workerManager.d.ts +0 -16
- package/types/testertesting/workerManager.d.ts.map +0 -1
- package/types/testertesting/workerWorkerTestRunner01.d.ts +0 -7
- package/types/testertesting/workerWorkerTestRunner01.d.ts.map +0 -1
- package/types/testing/app.d.ts +0 -2
- package/types/testing/app.d.ts.map +0 -1
- package/types/testing/appConfig.d.ts +0 -3
- package/types/testing/appConfig.d.ts.map +0 -1
- package/types/testing/appTinyEmitter.d.ts +0 -2
- package/types/testing/appTinyEmitter.d.ts.map +0 -1
- package/types/testing/appWorkerWSS.d.ts +0 -26
- package/types/testing/appWorkerWSS.d.ts.map +0 -1
- package/types/testing/appredistest.d.ts +0 -4
- package/types/testing/appredistest.d.ts.map +0 -1
- package/types/testing/appsolo.d.ts +0 -3
- package/types/testing/appsolo.d.ts.map +0 -1
- package/types/testing/promiseTesting.d.ts +0 -4
- package/types/testing/promiseTesting.d.ts.map +0 -1
- package/types/testing/server.d.ts +0 -6
- package/types/testing/server.d.ts.map +0 -1
- package/types/testing/wsevents.d.ts +0 -18
- package/types/testing/wsevents.d.ts.map +0 -1
- package/types/webworkertesting/app.d.ts +0 -2
- package/types/webworkertesting/app.d.ts.map +0 -1
- package/types/webworkertesting/worker.d.ts +0 -2
- package/types/webworkertesting/worker.d.ts.map +0 -1
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { QueryApi } from '@influxdata/influxdb-client'
|
|
2
|
-
import { InfluxDBManagerBase } from './influxDBManagerBase'
|
|
3
|
-
import { IInfluxDBManagerOptions } from './../commonTypes'
|
|
4
|
-
|
|
5
|
-
export class InfluxDBManagerService extends InfluxDBManagerBase
|
|
6
|
-
{
|
|
7
|
-
constructor(options: IInfluxDBManagerOptions, queryApi: QueryApi) {
|
|
8
|
-
super(options, queryApi);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
override get modelType(): string {
|
|
12
|
-
return 'service'
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/* eslint @typescript-eslint/no-explicit-any: 0 */ // --> OFF
|
|
2
|
-
/*
|
|
3
|
-
import chalk from 'chalk';
|
|
4
|
-
|
|
5
|
-
import isNode from 'detect-node'
|
|
6
|
-
|
|
7
|
-
import { WebWorkerMessageHandler, defaultLogger, JSONObject } from '@nsshunt/stsutils'
|
|
8
|
-
|
|
9
|
-
import { IPublishInstrumentsOptions, IInstrumentPayload, TransportType, IPublisherTransport, PublishTransportRESTServer } from '@nsshunt/stsobservability'
|
|
10
|
-
|
|
11
|
-
import { parentPort } from 'worker_threads'
|
|
12
|
-
|
|
13
|
-
export enum ePublishState {
|
|
14
|
-
init,
|
|
15
|
-
started,
|
|
16
|
-
stopping
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export class PublishInstruments {
|
|
20
|
-
#inPublish = false;
|
|
21
|
-
#observer: NodeJS.Timeout | null = null;
|
|
22
|
-
#publishState: ePublishState = ePublishState.init;
|
|
23
|
-
#publisherTransport: IPublisherTransport | null = null;
|
|
24
|
-
#wwClient: WebWorkerMessageHandler;
|
|
25
|
-
#options?: IPublishInstrumentsOptions;
|
|
26
|
-
|
|
27
|
-
constructor() {
|
|
28
|
-
this.#wwClient = new WebWorkerMessageHandler({
|
|
29
|
-
logger: defaultLogger,
|
|
30
|
-
role: 'CLIENT',
|
|
31
|
-
namespace: 'mytestapp',
|
|
32
|
-
groups: [ ],
|
|
33
|
-
ignoreEvents: [ 'ping' ],
|
|
34
|
-
messagePort: parentPort
|
|
35
|
-
});
|
|
36
|
-
this.#wwClient.Start();
|
|
37
|
-
|
|
38
|
-
this.#wwClient.on('options', (options: IPublishInstrumentsOptions, callback: any) => {
|
|
39
|
-
this.#options = options;
|
|
40
|
-
|
|
41
|
-
this.#options.publishTransportBaseOptions.logger = defaultLogger;
|
|
42
|
-
this.#options.logger = defaultLogger;
|
|
43
|
-
|
|
44
|
-
this.#publisherTransport = null;
|
|
45
|
-
switch (this.#options.publishTransportBaseOptions.transportType) {
|
|
46
|
-
case TransportType.RESTAPI :
|
|
47
|
-
this.#publisherTransport = new PublishTransportRESTServer(this.#options.publishTransportBaseOptions);
|
|
48
|
-
break;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
callback( {
|
|
52
|
-
status: `OK`
|
|
53
|
-
})
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
this.#wwClient.on('start', (args: JSONObject, callback: any) => {
|
|
57
|
-
this.StartPublish();
|
|
58
|
-
callback( {
|
|
59
|
-
status: `OK`
|
|
60
|
-
})
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
this.#wwClient.on('stop', (args: JSONObject, callback: any) => {
|
|
64
|
-
this.EndPublish();
|
|
65
|
-
callback( {
|
|
66
|
-
status: `OK`
|
|
67
|
-
})
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
this.#wwClient.on('publish', (args: JSONObject, callback: any) => {
|
|
71
|
-
this.Publish();
|
|
72
|
-
callback( {
|
|
73
|
-
status: `OK`
|
|
74
|
-
})
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
this.#UpdateState(ePublishState.init, "constructor()");
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
async Publish(): Promise<boolean> {
|
|
81
|
-
if (this.#inPublish) {
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (this.#publisherTransport) {
|
|
86
|
-
try {
|
|
87
|
-
this.#inPublish = true;
|
|
88
|
-
|
|
89
|
-
//const instrumentPayload: IInstrumentPayload = this.#GetPayloadData();
|
|
90
|
-
//const instrumentPayload: IInstrumentPayload = this.options.publishInstrumentController.GetPayloadData();
|
|
91
|
-
const retVal = await this.#wwClient?.emitex('getpayload', { }) as JSONObject;
|
|
92
|
-
const instrumentPayload: IInstrumentPayload = retVal.data;
|
|
93
|
-
|
|
94
|
-
return await this.#publisherTransport.Publish(instrumentPayload);
|
|
95
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
96
|
-
} catch (error) {
|
|
97
|
-
return false;
|
|
98
|
-
} finally {
|
|
99
|
-
this.#inPublish = false;
|
|
100
|
-
}
|
|
101
|
-
} else {
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
#PublishTimeoutLoop(publishInterval: number) {
|
|
107
|
-
this.#observer = setTimeout(async () => {
|
|
108
|
-
const start = performance.now();
|
|
109
|
-
await this.Publish();
|
|
110
|
-
const end = performance.now();
|
|
111
|
-
const diff = end - start;
|
|
112
|
-
|
|
113
|
-
if (this.#publishState === ePublishState.started) {
|
|
114
|
-
this.#PublishTimeoutLoop((this.#options as IPublishInstrumentsOptions).publishInterval - (diff));
|
|
115
|
-
}
|
|
116
|
-
}, publishInterval);
|
|
117
|
-
if (isNode) this.#observer.unref();
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
async StartPublish(): Promise<boolean> {
|
|
121
|
-
if (this.#publishState !== ePublishState.init) {
|
|
122
|
-
this.#options?.logger.debug(chalk.yellow(`StartPublish:${this.#options.processContext.nid}: StartPublish called when not currently in the init state. Current State: [${this.#publishState}]`));
|
|
123
|
-
return false;
|
|
124
|
-
}
|
|
125
|
-
this.#UpdateState(ePublishState.started, "StartPublish()");
|
|
126
|
-
this.#PublishTimeoutLoop((this.#options as IPublishInstrumentsOptions).publishInterval);
|
|
127
|
-
return true;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
#UpdateState(newState: ePublishState, comment: string): void {
|
|
131
|
-
const previousState = this.#publishState;
|
|
132
|
-
this.#publishState = newState;
|
|
133
|
-
this.#options?.logger.debug(chalk.yellow(`#UpdateState:${this.#options?.processContext.nid}: Previous State: [${previousState}]. Current State: [${this.#publishState}]. Comment: [${comment}]`));
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
async EndPublish(): Promise<boolean> {
|
|
137
|
-
if (this.#publishState !== ePublishState.started) {
|
|
138
|
-
this.#options?.logger.debug(chalk.yellow(`EndPublish:${this.#options.processContext.nid}: EndPublish called when not within the started state. Current State: [${this.#publishState}]`));
|
|
139
|
-
return false;
|
|
140
|
-
}
|
|
141
|
-
this.#UpdateState(ePublishState.stopping, "EndPublish() (1)");
|
|
142
|
-
if (this.#observer !== null) {
|
|
143
|
-
clearInterval(this.#observer);
|
|
144
|
-
this.#observer = null;
|
|
145
|
-
// Perform a final publish/flush of any remaining instrument data (such as logs etc.)
|
|
146
|
-
await this.Publish();
|
|
147
|
-
}
|
|
148
|
-
if (this.#publisherTransport) {
|
|
149
|
-
await this.#publisherTransport.Close();
|
|
150
|
-
}
|
|
151
|
-
this.#UpdateState(ePublishState.init, "EndPublish() (2)");
|
|
152
|
-
return true;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
new PublishInstruments();
|
|
157
|
-
*/
|
package/src/tcpclient/app.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint @typescript-eslint/no-explicit-any: 0 */ // --> OFF
|
|
2
|
-
import jayson from 'jayson'
|
|
3
|
-
|
|
4
|
-
// Read node's tls documentation for more information about these options:
|
|
5
|
-
// https://nodejs.org/api/tls.html#tls_tls_connect_options_callback
|
|
6
|
-
const options: jayson.TcpClientOptions = {
|
|
7
|
-
port: 3003,
|
|
8
|
-
host: 'stscore.stsmda.org'
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const client = jayson.client.tls(options);
|
|
12
|
-
|
|
13
|
-
const LogInfoMessage = (message: any) => console.log(message)
|
|
14
|
-
|
|
15
|
-
// create a client
|
|
16
|
-
|
|
17
|
-
// invoke "add"
|
|
18
|
-
client.request('add', [1, 1], function(err: any, response: any) {
|
|
19
|
-
if(err) throw err;
|
|
20
|
-
LogInfoMessage(response.result); // 2
|
|
21
|
-
});
|
package/src/tcpclient/app2.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/* eslint @typescript-eslint/no-explicit-any: 0, @typescript-eslint/no-unused-vars: 0 */ // --> OFF
|
|
2
|
-
import tls from 'tls';
|
|
3
|
-
import { Sleep } from '@nsshunt/stsutils'
|
|
4
|
-
|
|
5
|
-
import chalk from 'chalk';
|
|
6
|
-
|
|
7
|
-
const options = {
|
|
8
|
-
port: 3003,
|
|
9
|
-
host: 'stscore.stsmda.org'
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const done: boolean[] = [];
|
|
13
|
-
|
|
14
|
-
const LogInfoMessage = (message: any) => console.log(message)
|
|
15
|
-
|
|
16
|
-
const dosomework = (socket: any, index: number) => {
|
|
17
|
-
LogInfoMessage('Connected');
|
|
18
|
-
socket.write("Hello From Client " + JSON.stringify(socket.address()));
|
|
19
|
-
(async () => {
|
|
20
|
-
for (;;) {
|
|
21
|
-
const msg = `${new Date()}: Hello`;
|
|
22
|
-
LogInfoMessage(`sending: [${msg}]`);
|
|
23
|
-
socket.write(msg);
|
|
24
|
-
await Sleep(1000);
|
|
25
|
-
if (done[index]) {
|
|
26
|
-
break;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
})();
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
for (let i=0; i < 6; i++) {
|
|
33
|
-
const socket1 = tls.connect(options);
|
|
34
|
-
done[i] = false;
|
|
35
|
-
socket1.on('secureConnect', () => {
|
|
36
|
-
dosomework(socket1, i);
|
|
37
|
-
});
|
|
38
|
-
socket1.on('close', function(data: any) {
|
|
39
|
-
LogInfoMessage(chalk.yellow(`CLOSED: ${socket1.remoteAddress} ${socket1.remotePort}`));
|
|
40
|
-
done[i]=true;
|
|
41
|
-
});
|
|
42
|
-
socket1.on('data', function(data: any) {
|
|
43
|
-
LogInfoMessage(chalk.yellow(`DATA ${socket1.remoteAddress} ${socket1.remotePort} ${data}`));
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/*
|
|
48
|
-
const socket2 = tls.connect(options);
|
|
49
|
-
socket2.on('secureConnect', () => {
|
|
50
|
-
dosomework(socket2);
|
|
51
|
-
});
|
|
52
|
-
socket2.on('close', function(data: any) {
|
|
53
|
-
LogInfoMessage(chalk.green(`CLOSED: ${socket2.remoteAddress} ${socket2.remotePort}`));
|
|
54
|
-
});
|
|
55
|
-
socket2.on('data', function(data: any) {
|
|
56
|
-
LogInfoMessage(chalk.green(`DATA ${socket2.remoteAddress} ${socket2.remotePort} ${data}`));
|
|
57
|
-
});
|
|
58
|
-
*/
|
package/src/tcpserver/app.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ServiceConfigOptions } from './appConfig.js'
|
|
2
|
-
//import { WorkerProcessBase } from '../index'
|
|
3
|
-
import { AppMaster } from './appmaster'
|
|
4
|
-
|
|
5
|
-
import cluster from 'cluster';
|
|
6
|
-
|
|
7
|
-
if (cluster.isPrimary) {
|
|
8
|
-
new AppMaster(ServiceConfigOptions(true, cluster.isPrimary)).SetupServer();
|
|
9
|
-
} else {
|
|
10
|
-
//new WorkerProcessBase(ServiceConfigOptions(true, cluster.isPrimary)).SetupServer();
|
|
11
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
2
|
-
|
|
3
|
-
import { goptions } from '@nsshunt/stsconfig'
|
|
4
|
-
|
|
5
|
-
import { ProcessOptions, STSServerType } from '../index'
|
|
6
|
-
|
|
7
|
-
import winston from 'winston'
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
// nid: `${goptions.rest01servicename} @ ${goptions.rest01serviceversion} | ${this.options.globalServiceData.serviceInstanceId} @ ${os.hostname()} ^ ${process.pid} @ ${(cluster.isMaster ? process.pid : process.ppid)}`,
|
|
11
|
-
// <serviceId> <serviceInstanceId> <serviceInstanceProcessId>
|
|
12
|
-
// <serviceName> <serviceVersion> <sid> <hostName> <pid> <ppid>
|
|
13
|
-
// << ............... Static Nid ............... >> << ............... Dynamic Nid ............... >>
|
|
14
|
-
// Note: The final nid will NOT contain the NID_SEPERATOR character. This will be replaced with the SEPERATOR character.
|
|
15
|
-
const Context = (isMaster, serviceInstanceId) => {
|
|
16
|
-
return {
|
|
17
|
-
nid: `\
|
|
18
|
-
${goptions.rest01servicename}${ModelDelimeter.COMPONENT_SEPERATOR}${goptions.rest01serviceversion}\
|
|
19
|
-
${ModelDelimeter.SEPERATOR}\
|
|
20
|
-
${serviceInstanceId}${ModelDelimeter.COMPONENT_SEPERATOR}${os.hostname()}\
|
|
21
|
-
${ModelDelimeter.NID_SEPERATOR}\
|
|
22
|
-
${process.pid}${ModelDelimeter.COMPONENT_SEPERATOR}${(isMaster ? process.pid : process.ppid)}`
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
export function ServiceConfigOptions(clusterMode: boolean, isMaster: boolean): ProcessOptions {
|
|
28
|
-
winston.format.combine(
|
|
29
|
-
winston.format.colorize(),
|
|
30
|
-
winston.format.simple()
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
const logger = winston.createLogger({
|
|
34
|
-
level: 'silly',
|
|
35
|
-
format: winston.format.combine(
|
|
36
|
-
winston.format.colorize(),
|
|
37
|
-
winston.format.simple()
|
|
38
|
-
),
|
|
39
|
-
transports: [
|
|
40
|
-
new winston.transports.Console()
|
|
41
|
-
]
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
const publisherLogger = winston.createLogger({
|
|
45
|
-
level: 'info',
|
|
46
|
-
format: winston.format.combine(
|
|
47
|
-
winston.format.colorize(),
|
|
48
|
-
winston.format.simple()
|
|
49
|
-
),
|
|
50
|
-
transports: [
|
|
51
|
-
new winston.transports.Console()
|
|
52
|
-
]
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
if (isMaster === true) {
|
|
56
|
-
const serviceInstanceId = uuidv4();
|
|
57
|
-
const data: ProcessOptions = {
|
|
58
|
-
serverType: STSServerType.TCPRAW_TLS,
|
|
59
|
-
|
|
60
|
-
clusterMode: clusterMode,
|
|
61
|
-
wssServer: false,
|
|
62
|
-
useLatency: false,
|
|
63
|
-
httpsServerKeyPath: goptions.httpsserverkeypath,
|
|
64
|
-
httpsServerCertificatePath: goptions.httpsservercertpath,
|
|
65
|
-
processExitOnTerminate: true,
|
|
66
|
-
serviceInstanceId: serviceInstanceId,
|
|
67
|
-
useDatabase: true,
|
|
68
|
-
|
|
69
|
-
isMaster: isMaster,
|
|
70
|
-
endpoint: goptions.rest01endpoint,
|
|
71
|
-
apiRoot: goptions.rest01apiroot,
|
|
72
|
-
listenPort: goptions.rest01hostport,
|
|
73
|
-
port: goptions.rest01port,
|
|
74
|
-
|
|
75
|
-
prometheusSupport: false,
|
|
76
|
-
prometheusClusterPort: goptions.rest01prometheusclusterport,
|
|
77
|
-
|
|
78
|
-
serviceName: goptions.rest01servicename,
|
|
79
|
-
serviceVersion: goptions.rest01serviceversion,
|
|
80
|
-
consoleLogging: true,
|
|
81
|
-
instrumentLogging: true,
|
|
82
|
-
|
|
83
|
-
instrumentationObservationInterval: goptions.instrumentationObservationInterval,
|
|
84
|
-
instrumentationTimeWindow: goptions.instrumentationTimeWindow,
|
|
85
|
-
|
|
86
|
-
useSocketIoRedisAdaptor: false,
|
|
87
|
-
|
|
88
|
-
logger: logger,
|
|
89
|
-
publisherLogger: publisherLogger,
|
|
90
|
-
publishInterval: goptions.publishinterval
|
|
91
|
-
}
|
|
92
|
-
return data;
|
|
93
|
-
} else {
|
|
94
|
-
const data: ProcessOptions = JSON.parse(process.env['STS_GSD_SII'] as string) as ProcessOptions;
|
|
95
|
-
data.logger = logger;
|
|
96
|
-
data.publisherLogger = publisherLogger
|
|
97
|
-
return data;
|
|
98
|
-
}
|
|
99
|
-
}
|