make server local

This commit is contained in:
Stefan Rupp 2020-11-26 00:44:27 +01:00
parent 1145fc7fa0
commit 62f252130e
2 changed files with 4 additions and 3 deletions

View File

@ -12,8 +12,8 @@ def main():
random.seed() random.seed()
wiz_game.the_game.start_game() wiz_game.the_game.start_game()
#api.run(port=8001, address="127.0.0.1") api.run(port=8001, address="127.0.0.1")
api.run(port=8001, address="192.168.42.100") #api.run(port=8001, address="192.168.42.100")
exit(0) exit(0)

View File

@ -22,7 +22,8 @@
<script src="//oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> <script src="//oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]--> <![endif]-->
<script> <script>
let socket = new WebSocket("wss://cowiz.struppi.name/ws"); // let socket = new WebSocket("wss://cowiz.struppi.name/ws");
let socket = new WebSocket("ws://127.0.0.1:8001/ws");
window.game_socket = socket window.game_socket = socket
socket.onopen = function(e) { socket.onopen = function(e) {