Skip to content
Snippets Groups Projects
Commit 78d76eb0 authored by Alexey Lunin's avatar Alexey Lunin
Browse files

Experimenting with inbound transport...

parent 623162d7
Branches
No related tags found
1 merge request!20Didgram
LEDGERS="BCOVRIN_TEST" LEDGERS="BCOVRIN_TEST"
IDUNION_KEY= IDUNION_KEY=
AGENT_PEER_URL="http://new.didgram.pro:6001" AGENT_PEER_URL="ws://new.didgram.pro:6001"
AGENT_NAME=DEV_AGENT_HOLDER_OCM_4 # this should be changed to company name AGENT_NAME=DEV_AGENT_HOLDER_OCM_4 # this should be changed to company name
AGENT_KEY=DEV_AGENT_HOLDER_OCM_4 #example random string AGENT_KEY=DEV_AGENT_HOLDER_OCM_4 #example random string
AGENT_DID_SEED=2000000000000000CCA120000000TCuste21jsjs #did private key seed min lenght 32 AGENT_DID_SEED=2000000000000000CCA120000000TCuste21jsjs #did private key seed min lenght 32
......
LEDGERS="BCOVRIN_TEST" LEDGERS="BCOVRIN_TEST"
IDUNION_KEY= IDUNION_KEY=
AGENT_PEER_URL="http://agent-holder:6001" AGENT_PEER_URL="ws://agent-holder:6001"
AGENT_NAME=DEV_SIMPLE_AGENT_HOLDER_OCM # this should be changed to company name AGENT_NAME=DEV_SIMPLE_AGENT_HOLDER_OCM # this should be changed to company name
AGENT_KEY=DEV_SIMPLE_AGENT_HOLDER_OCM #example random string AGENT_KEY=DEV_SIMPLE_AGENT_HOLDER_OCM #example random string
AGENT_DID_SEED=200000000000000000000000TCuste21xh #did private key seed min lenght 32 AGENT_DID_SEED=200000000000000000000000TCuste21xh #did private key seed min lenght 32
......
LEDGERS="BCOVRIN_TEST" LEDGERS="BCOVRIN_TEST"
IDUNION_KEY= IDUNION_KEY=
AGENT_PEER_URL="http://new.didgram.pro:8001" AGENT_PEER_URL="ws://new.didgram.pro:8001"
AGENT_NAME=DEV_AGENT_ISSUER_OCM_4 # this should be changed to company name AGENT_NAME=DEV_AGENT_ISSUER_OCM_4 # this should be changed to company name
AGENT_KEY=DEV_AGENT_ISSUER_OCM_4 #example random string AGENT_KEY=DEV_AGENT_ISSUER_OCM_4 #example random string
AGENT_DID_SEED=20000000000000000000000aca0xxaDTCuste21udhasjs #did private key seed min lenght 32 AGENT_DID_SEED=20000000000000000000000aca0xxaDTCuste21udhasjs #did private key seed min lenght 32
......
LEDGERS="BCOVRIN_TEST" LEDGERS="BCOVRIN_TEST"
IDUNION_KEY= IDUNION_KEY=
AGENT_PEER_URL="http://agent-issuer:8001" AGENT_PEER_URL="ws://agent-issuer:8001"
AGENT_NAME=DEV_SIMPLE_AGENT_ISSUER_OCM # this should be changed to company name AGENT_NAME=DEV_SIMPLE_AGENT_ISSUER_OCM # this should be changed to company name
AGENT_KEY=DEV_SIMPLE_AGENT_ISSUER_OCM #example random string AGENT_KEY=DEV_SIMPLE_AGENT_ISSUER_OCM #example random string
AGENT_DID_SEED=200000000000000000000000TCuste21js #did private key seed min lenght 32 AGENT_DID_SEED=200000000000000000000000TCuste21js #did private key seed min lenght 32
......
...@@ -14,7 +14,7 @@ import { ...@@ -14,7 +14,7 @@ import {
TypedArrayEncoder, TypedArrayEncoder,
WsOutboundTransport, WsOutboundTransport,
} from "@aries-framework/core"; } from "@aries-framework/core";
import { agentDependencies, HttpInboundTransport } from "@aries-framework/node"; import {agentDependencies, HttpInboundTransport, WsInboundTransport} from "@aries-framework/node";
import { ConfigService } from "@nestjs/config"; import { ConfigService } from "@nestjs/config";
import { LedgersService } from "@ocm-engine/ledgers"; import { LedgersService } from "@ocm-engine/ledgers";
import { import {
...@@ -66,12 +66,15 @@ export class AskarService implements OnModuleInit, OnModuleDestroy { ...@@ -66,12 +66,15 @@ export class AskarService implements OnModuleInit, OnModuleDestroy {
), ),
}); });
// this.agent.registerInboundTransport(
// new HttpInboundTransport({ port: this.agentConfig.agentPeerPort }),
// );
this.agent.registerInboundTransport( this.agent.registerInboundTransport(
new HttpInboundTransport({ port: this.agentConfig.agentPeerPort }), new WsInboundTransport({ port: this.agentConfig.agentPeerPort }),
); );
this.agent.registerOutboundTransport(new WsOutboundTransport()); this.agent.registerOutboundTransport(new WsOutboundTransport());
this.agent.registerOutboundTransport(new HttpOutboundTransport()); // this.agent.registerOutboundTransport(new HttpOutboundTransport());
this.logger.log("Agent setup completed"); this.logger.log("Agent setup completed");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment