Skip to content

Commit b15a2ef

Browse files
committed
porting changes over from PR#1792
Signed-off-by: shaangill025 <gill.shaanjots@gmail.com>
1 parent 818d8e0 commit b15a2ef

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

aries_cloudagent/transport/inbound/base.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def __init__(
1919
create_session: Callable,
2020
*,
2121
max_message_size: int = 0,
22+
is_external: bool = False,
2223
wire_format: BaseWireFormat = None,
2324
root_profile: Profile = None,
2425
):
@@ -35,6 +36,7 @@ def __init__(
3536
self._scheme = scheme
3637
self.wire_format: BaseWireFormat = wire_format
3738
self.root_profile: Profile = root_profile
39+
self._is_external = is_external
3840

3941
@property
4042
def max_message_size(self):
@@ -46,6 +48,11 @@ def scheme(self):
4648
"""Accessor for this transport's scheme."""
4749
return self._scheme
4850

51+
@property
52+
def is_external(self):
53+
"""Accessor for this transport's is_external."""
54+
return self._is_external
55+
4956
def create_session(
5057
self,
5158
*,

aries_cloudagent/transport/inbound/http.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
class HttpTransport(BaseInboundTransport):
1616
"""Http Transport class."""
1717

18-
is_external = False
19-
2018
def __init__(self, host: str, port: int, create_session, **kwargs) -> None:
2119
"""
2220
Initialize an inbound HTTP transport instance.

aries_cloudagent/transport/inbound/ws.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
class WsTransport(BaseInboundTransport):
1717
"""Websockets Transport class."""
1818

19-
is_external = False
20-
2119
def __init__(self, host: str, port: int, create_session, **kwargs) -> None:
2220
"""
2321
Initialize an inbound WebSocket transport instance.

0 commit comments

Comments
 (0)