We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86f3c76 commit 8adaf60Copy full SHA for 8adaf60
src/replit_river/client_session.py
@@ -8,6 +8,7 @@
8
from aiochannel import Channel
9
from aiochannel.errors import ChannelClosed
10
from opentelemetry.trace import Span
11
+import websockets
12
13
from replit_river.error_schema import (
14
ERROR_CODE_CANCEL,
@@ -33,6 +34,12 @@
33
34
35
36
class ClientSession(Session):
37
+ async def replace_with_new_websocket(
38
+ self, new_ws: websockets.WebSocketCommonProtocol
39
+ ) -> None:
40
+ await super().replace_with_new_websocket(new_ws)
41
+ await self.start_serve_responses()
42
+
43
async def send_rpc(
44
self,
45
service_name: str,
src/replit_river/common_session.py
@@ -11,6 +11,7 @@
logger = logging.getLogger(__name__)
15
class SendMessage(Protocol):
16
async def __call__(
17
0 commit comments