mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
add websocket.timestamp_end
This commit is contained in:
parent
f236ee42ed
commit
ac9852122f
4 changed files with 8 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ def websocket_message(flow):
|
|||
|
||||
async def inject_async(flow: http.HTTPFlow):
|
||||
msg = "hello from mitmproxy! "
|
||||
while flow.server_conn.connected:
|
||||
while flow.websocket.timestamp_end is None:
|
||||
ctx.master.commands.call("inject", [flow], False, msg)
|
||||
await asyncio.sleep(1)
|
||||
msg = msg[1:] + msg[:1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue