Feature/ws send confirmation removal (#280)

* Removed send confirmation

* Updated websocket examples
This commit is contained in:
Jędrzej Stuczyński
2020-07-13 12:07:06 +01:00
committed by GitHub
parent 5ef96aa241
commit 6cc2bc6f91
5 changed files with 32 additions and 46 deletions
@@ -26,8 +26,6 @@ async def send_file():
print("sending content of 'dummy_file' over the mix network...")
await websocket.send(bin_payload)
msg_send_confirmation = json.loads(await websocket.recv())
assert msg_send_confirmation["type"], "send"
print("waiting to receive the 'dummy_file' from the mix network...")
received_data = await websocket.recv()
@@ -24,8 +24,6 @@ async def send_text():
print("sending '{}' over the mix network...".format(message))
await websocket.send(text_send)
msg_send_confirmation = json.loads(await websocket.recv())
assert msg_send_confirmation["type"], "send"
print("waiting to receive a message from the mix network...")
received_message = await websocket.recv()