Source code
Revision control
Copy as Markdown
Other Tools
#!/usr/bin/env python
import asyncio
from websockets.sync.client import connect
def hello():
websocket.send("Hello world!")
message = websocket.recv()
print(f"Received: {message}")
hello()