Example #1
0
        public void onConnected(ConnectResponse response) {
            this.ClientId = response.ClientId;
            _welcomeDiv.innerHTML = "Connected.";

            StartGameRequest request = new StartGameRequest();
            request.ClientId = this.ClientId;
            server.send(request);
        }
Example #2
0
        public void onResetGame(ResetGameResponse resetGameResponse)
        {
            HtmlContext.console.log("reset game");

            var request = new StartGameRequest();
            request.ClientId = ClientId;
            request.GameId = resetGameResponse.GameId;
            server.send(request);
        }