Change text of response message.

This commit is contained in:
2018-08-12 17:30:27 +02:00
parent 50c73ea203
commit 3a8bebaea9

View File

@@ -7,7 +7,7 @@ async def hello(websocket, path):
name = await websocket.recv() name = await websocket.recv()
print(f"< {name}") print(f"< {name}")
greeting = f"Hello {name}, welcome to the world websockets!" greeting = f"Hello {name}, welcome to the world of websockets!"
await websocket.send(greeting) await websocket.send(greeting)
print(f"> {greeting}") print(f"> {greeting}")