Skip to content

Commit f3a2590

Browse files
Removing transport_options parameter
1 parent 2a2cc58 commit f3a2590

File tree

7 files changed

+7
-9
lines changed

7 files changed

+7
-9
lines changed

src/replit_river/client_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async def _handle_messages_from_ws(self) -> None:
125125
if not await ws_wrapper.is_open():
126126
# We should not process messages if the websocket is closed.
127127
break
128-
msg = parse_transport_msg(message, self._transport_options)
128+
msg = parse_transport_msg(message)
129129

130130
logger.debug(f"{self._transport_id} got a message %r", msg)
131131

src/replit_river/client_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ async def _get_handshake_response_msg(
294294
"Handshake failed, conn closed while waiting for response",
295295
) from e
296296
try:
297-
return parse_transport_msg(data, self._transport_options)
297+
return parse_transport_msg(data)
298298
except IgnoreMessageException:
299299
logger.debug("Ignoring transport message", exc_info=True)
300300
continue

src/replit_river/messages.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ def formatted_bytes(message: bytes) -> str:
6060
return " ".join(f"{b:02x}" for b in message)
6161

6262

63-
def parse_transport_msg(
64-
message: str | bytes, transport_options: TransportOptions
65-
) -> TransportMessage:
63+
def parse_transport_msg(message: str | bytes) -> TransportMessage:
6664
if isinstance(message, str):
6765
raise IgnoreMessageException(
6866
f"ignored a message beacuse it was a text frame: {message}"

src/replit_river/server_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async def _handle_messages_from_ws(self, tg: asyncio.TaskGroup) -> None:
122122
if not await ws_wrapper.is_open():
123123
# We should not process messages if the websocket is closed.
124124
break
125-
msg = parse_transport_msg(message, self._transport_options)
125+
msg = parse_transport_msg(message)
126126

127127
logger.debug(f"{self._transport_id} got a message %r", msg)
128128

src/replit_river/server_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async def handshake_to_get_session(
7373
) -> ServerSession:
7474
async for message in websocket:
7575
try:
76-
msg = parse_transport_msg(message, self._transport_options)
76+
msg = parse_transport_msg(message)
7777
(
7878
handshake_request,
7979
handshake_response,

src/replit_river/v2/client_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async def _handle_messages_from_ws(self) -> None:
158158
if not self._ws_unwrapped:
159159
# We should not process messages if the websocket is closed.
160160
break
161-
msg = parse_transport_msg(message, self._transport_options)
161+
msg = parse_transport_msg(message)
162162

163163
logger.debug(f"{self._transport_id} got a message %r", msg)
164164

src/replit_river/v2/client_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ async def _get_handshake_response_msg(
281281
"Handshake failed, conn closed while waiting for response",
282282
) from e
283283
try:
284-
return parse_transport_msg(data, self._transport_options)
284+
return parse_transport_msg(data)
285285
except IgnoreMessageException:
286286
logger.debug("Ignoring transport message", exc_info=True)
287287
continue

0 commit comments

Comments
 (0)