feat: test connection to backend
This commit is contained in:
0
__init__.py
Normal file
0
__init__.py
Normal file
0
tetris/__init__.py
Normal file
0
tetris/__init__.py
Normal file
8
tetris/backend.py
Normal file
8
tetris/backend.py
Normal 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))
|
||||
Reference in New Issue
Block a user