Created
July 18, 2022 10:42
-
-
Save psarna/950d95f0143ad2192c760c08ff2794d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import websockets | |
conn = await websockets.connect('ws://localhost:8123', subprotocols=["echo"]) | |
await conn.send("hello world!") | |
response = await conn.recv() | |
print(response) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment