Ilya_Bykonya

Untitled

May 27th, 2024
813
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | Source Code | 0 0
  1. from websocket import create_connection
  2. with create_connection("ws://localhost:3071/ws/1") as ws:
  3.     ws.send("Hello, World")
  4.     print(f'Received: {ws.recv()}')
  5.  
Advertisement
Add Comment
Please, Sign In to add comment