Browse Source

Send server config to client on connect

Frans Bergman 7 years ago
parent
commit
9af8412451
1 changed files with 1 additions and 0 deletions
  1. 1 0
      citybuilder/server.py

+ 1 - 0
citybuilder/server.py

@@ -43,6 +43,7 @@ class MainServerSocket(WebSocket):
 
     def handleConnected(self):
         print(self.address, 'connected')
+        self.send_json(core.config)
 
     def handleClose(self):
         print(self.address, 'closed')