naver / aries-framework-swift

Aries framework for iOS
Apache License 2.0
6 stars 0 forks source link

WebSocket OutboundTransport can be closed #9

Open kukgini opened 1 year ago

kukgini commented 1 year ago

When a Invitation which has websocket endpoint is received, the existing socket already connected to the mediator can be disappeared in WsOutboundTransport.

conanoc commented 1 year ago

For now, we keep only one WebSocket session, so the previous session, in this case, the session for the ACA-Py mediator, can be closed. That session will be recovered soon because we periodically send a ping to the mediator. At this time, the ws session for the counterparty agent may be closed. But, it will not be a problem because the counterparty agent could still send messages via the mediator.

That said, it may be better if we keep a session for each WebSocket endpoint. We will need the following jobs: