feat: test connection to backend

This commit is contained in:
Giovani Rodriguez
2021-06-29 06:18:33 +00:00
committed by GitHub
parent 0fb022ca29
commit ba32dd1681
3 changed files with 8 additions and 0 deletions

0
tetris/__init__.py Normal file
View File

8
tetris/backend.py Normal file
View File

@@ -0,0 +1,8 @@
from signalrcore.hub_connection_builder import HubConnectionBuilder
server_url = "https://tetriscloneapp.azurewebsites.net/player"
hub_connection = HubConnectionBuilder()\
.with_url(server_url)\
.build()
hub_connection.send("EnterGame", ["abc123"], lambda m: print(m))