def host(self): self.hostButton.text = "WAITING" self.hostButton.callback = None sock = Socket.Server() print('i am server') self.sock = sock ctx['imHost'] = True ctx['sock'] = sock sock.connect() Scene.game.setScene(MainScene())
import Socket server=Socket.Server()
import Socket import os Socket.Server().run_server()