Skip to content

Instantly share code, notes, and snippets.

@Oipo
Created August 20, 2019 11:16
Show Gist options
  • Save Oipo/a1d103bb324491b48745d03c277fc66b to your computer and use it in GitHub Desktop.
Save Oipo/a1d103bb324491b48745d03c277fc66b to your computer and use it in GitHub Desktop.
import websocket
ws = websocket.WebSocket()
ws.connect("ws://localhost:8080/")
ws.send("{\"type\": \"register\", \"username\": \"oipo\", \"password\": \"test\", \"email\": \"[email protected]\"}")
res = ws.recv()
print(f'res: {res}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment