Skip to content

Commit

Permalink
return received message in proxy recv (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiejunhu committed Sep 26, 2023
1 parent 8cf6272 commit 3298081
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sanic_testing/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ async def send(data):
async def recv():
message = await do_recv()
ws_proxy.client_received.append(message)
return message

websocket.send = send # type: ignore
websocket.recv = recv # type: ignore
Expand Down

0 comments on commit 3298081

Please sign in to comment.