diff --git a/compose/env/holder.env b/compose/env/holder.env index 8b6fe454fc6f916b43c9a2b28a6d387c4b03bfba..bb84883202ad81113a31c5b210af3b9cb20e1ffa 100644 --- a/compose/env/holder.env +++ b/compose/env/holder.env @@ -1,7 +1,7 @@ LEDGERS="BCOVRIN_TEST" 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_KEY=DEV_AGENT_HOLDER_OCM_4 #example random string AGENT_DID_SEED=2000000000000000CCA120000000TCuste21jsjs #did private key seed min lenght 32 diff --git a/compose/env/holder.simple.env b/compose/env/holder.simple.env index 0db552de3ba9ba0e25e9e1a91c837aca8f4bc28e..0512edd67495ce96b117057529d79a64ab18d0ab 100644 --- a/compose/env/holder.simple.env +++ b/compose/env/holder.simple.env @@ -1,7 +1,7 @@ LEDGERS="BCOVRIN_TEST" 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_KEY=DEV_SIMPLE_AGENT_HOLDER_OCM #example random string AGENT_DID_SEED=200000000000000000000000TCuste21xh #did private key seed min lenght 32 diff --git a/compose/env/issuer.env b/compose/env/issuer.env index 4bb480b2272b151cac8f0b5f8db33d9020e5b47a..ff74431543723dd76ea57bd8ffbabce02547dbf0 100644 --- a/compose/env/issuer.env +++ b/compose/env/issuer.env @@ -1,7 +1,7 @@ LEDGERS="BCOVRIN_TEST" 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_KEY=DEV_AGENT_ISSUER_OCM_4 #example random string AGENT_DID_SEED=20000000000000000000000aca0xxaDTCuste21udhasjs #did private key seed min lenght 32 diff --git a/compose/env/issuer.simple.env b/compose/env/issuer.simple.env index 22c8de61a9796eadeda934873ca3a3f88f25a67d..bfe2d54c7c903fd3fb9c6022be92df66bd55fecc 100644 --- a/compose/env/issuer.simple.env +++ b/compose/env/issuer.simple.env @@ -1,7 +1,7 @@ LEDGERS="BCOVRIN_TEST" 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_KEY=DEV_SIMPLE_AGENT_ISSUER_OCM #example random string AGENT_DID_SEED=200000000000000000000000TCuste21js #did private key seed min lenght 32 diff --git a/libs/askar/src/askar/askar.service.ts b/libs/askar/src/askar/askar.service.ts index e07eb52a9f77a1f1b57ff7e0df2acdeebf9ec5e8..3d7baf755c66d9f443eed4de589db035a1859001 100644 --- a/libs/askar/src/askar/askar.service.ts +++ b/libs/askar/src/askar/askar.service.ts @@ -14,7 +14,7 @@ import { TypedArrayEncoder, WsOutboundTransport, } 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 { LedgersService } from "@ocm-engine/ledgers"; import { @@ -66,12 +66,15 @@ export class AskarService implements OnModuleInit, OnModuleDestroy { ), }); + // this.agent.registerInboundTransport( + // new HttpInboundTransport({ port: this.agentConfig.agentPeerPort }), + // ); this.agent.registerInboundTransport( - new HttpInboundTransport({ port: this.agentConfig.agentPeerPort }), + new WsInboundTransport({ port: this.agentConfig.agentPeerPort }), ); this.agent.registerOutboundTransport(new WsOutboundTransport()); - this.agent.registerOutboundTransport(new HttpOutboundTransport()); + // this.agent.registerOutboundTransport(new HttpOutboundTransport()); this.logger.log("Agent setup completed"); }