feat: test connection to backend

This commit is contained in:
2021-06-29 06:18:33 +00:00
parent 5f274befa1
commit 92761c2690
3 changed files with 8 additions and 0 deletions

0
__init__.py Normal file
View File

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))