File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
### Fixed
11
11
- add ` MPTCurrency ` support in ` Issue ` (rippled internal type)
12
12
- Fixed the implementation error in get_latest_open_ledger_sequence method. The change uses the "current" ledger for extracting sequence number.
13
+ - Increase default maximum payload size for websocket client
13
14
14
15
### Added
15
16
- Improved validation for models to also check param types
Original file line number Diff line number Diff line change 16
16
from xrpl .models .requests .request import Request
17
17
from xrpl .models .response import Response
18
18
19
+ _PAYLOAD_MAX_SIZE : Final [int ] = 2 ** 24
19
20
_REQ_ID_MAX : Final [int ] = 1_000_000
20
21
21
22
# the types from asyncio are not implemented as generics in python 3.8 and
@@ -90,7 +91,9 @@ def is_open(self: Self) -> bool:
90
91
async def _do_open (self : Self ) -> None :
91
92
"""Connects the client to the Web Socket API at its URL."""
92
93
# open the connection
93
- self ._websocket = await websocket_client .connect (self .url )
94
+ self ._websocket = await websocket_client .connect (
95
+ self .url , max_size = _PAYLOAD_MAX_SIZE
96
+ )
94
97
95
98
# make a message queue
96
99
self ._messages = asyncio .Queue ()
You can’t perform that action at this time.
0 commit comments