Skip to content

Commit f112339

Browse files
Boom
1 parent 09af819 commit f112339

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/replit_river/v2/session.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,7 @@ def get_next_pending() -> TransportMessage | None:
507507
return self._send_buffer[0]
508508
return None
509509

510-
# TODO: Just return _ws_unwrapped once we are no longer using the legacy client
511-
def get_ws() -> WebSocketCommonProtocol | ClientConnection | None:
510+
def get_ws() -> ClientConnection | None:
512511
if self.is_connected():
513512
return self._ws_unwrapped
514513
return None
@@ -969,7 +968,7 @@ async def _check_to_close_session(
969968
async def _buffered_message_sender(
970969
connection_condition: asyncio.Condition,
971970
message_enqueued: asyncio.Semaphore,
972-
get_ws: Callable[[], WebSocketCommonProtocol | ClientConnection | None],
971+
get_ws: Callable[[], ClientConnection | None],
973972
websocket_closed_callback: Callable[[], Coroutine[Any, Any, None]],
974973
get_next_pending: Callable[[], TransportMessage | None],
975974
commit: Callable[[TransportMessage], None],

0 commit comments

Comments
 (0)