open_game_connection() {
        if (!window.ipcRenderer)
            console.log("You must be connected within the game. This application will not run in the browser.")
        // If the app responds, we run the response handler function
        else
            window.ipcRenderer.on("responseFromApp", (err, str) => {
                this.game_response(err, str);
            });
    }
/**
     * Opens a new game connection and sets up the handler for messages 
     * received. This really just enables a listener for the game messages
     * as the game is just using an ipcRenderer to communicate.
     */
Opens a new game connection and sets up the handler for messages
received. This really just enables a listener for the game messages
as the game is just using an ipcRenderer to communicate.
Opens a new game connection and sets up the handler for messages received . This really just enables a listener for the game messages as the game is just using an ipcRenderer to communicate .
open_game_connection() {
        if (!window.ipcRenderer)
            console.log("You must be connected within the game. This application will not run in the browser.")
        else
            window.ipcRenderer.on("responseFromApp", (err, str) => {
                this.game_response(err, str);
            });
    }
open_game_connection ( ) { if ( ! window . ipcRenderer ) console . log ( "You must be connected within the game. This application will not run in the browser." ) else window . ipcRenderer . on ( "responseFromApp" , ( err , str ) => { this . game_response ( err , str ) ; } ) ; }
Opens a new game connection and sets up the handler for messages
 received.
Opens a new game connection and sets up the handler for messages received .
// If the app responds, we run the response handler function