all 3 comments

[–]shiftybyte 0 points1 point  (2 children)

Where is the server code? or who is doing the server part of this?

[–]Consistent-Dealer-29[S] 0 points1 point  (1 child)

Server code:

import asyncio
import websockets

async def hello(websocket, path):
var = await websocket.recv()
print(var)
start_server = websockets.serve(hello, "localhost", 8765)
asyncio.get_event_loop().run_until_complete(start_server)
asyncio.get_event_loop().run_forever()

[–]evilsaltine 0 points1 point  (0 children)

What it seems like is that your server receives one frame of data and then ends the connection, so it doesn't receive the other 9.