refactor: migrate coretraffic to current smartproxy

This commit is contained in:
2026-04-28 12:02:58 +00:00
parent ed595918e2
commit 44ce9c8900
12 changed files with 4391 additions and 3514 deletions
+4 -4
View File
@@ -6,9 +6,9 @@ import { CoreTraffic } from './coretraffic.classes.coretraffic.js';
* Coreflow Connector
*/
export class CoreflowConnector {
public typedrouter = new plugins.typedrequest.TypedRouter();
public typedrouter: plugins.typedrequest.TypedRouter = new plugins.typedrequest.TypedRouter();
public coretrafficRef: CoreTraffic;
public typesocketClient: plugins.typedsocket.TypedSocket;
public typesocketClient!: plugins.typedsocket.TypedSocket;
constructor(coretrafficRefArg: CoreTraffic) {
this.coretrafficRef = coretrafficRefArg;
@@ -32,9 +32,9 @@ export class CoreflowConnector {
public async start() {
this.typesocketClient = await plugins.typedsocket.TypedSocket.createClient(
this.typedrouter,
'http://coreflow:3000',
'coretraffic'
'http://coreflow:3000'
);
await this.typesocketClient.setTag('coretraffic', undefined);
}
public async stop() {