/ embarkConfig / communication.js
communication.js
 1  module.exports = {
 2    // default applies to all environments
 3    default: {
 4      enabled: true,
 5      provider: "whisper", // Communication provider. Currently, Embark only supports whisper
 6      available_providers: ["whisper"], // Array of available providers
 7    },
 8  
 9    // default environment, merges with the settings in default
10    // assumed to be the intended environment by `embark run`
11    development: {
12      connection: {
13        host: "localhost", // Host of the blockchain node
14        port: 8546, // Port of the blockchain node
15        type: "ws" // Type of connection (ws or rpc)
16      }
17    },
18  
19    // merges with the settings in default
20    // used with "embark run privatenet"
21    privatenet: {
22    },
23  
24    // merges with the settings in default
25    // used with "embark run testnet"
26    testnet: {
27    },
28  
29    // merges with the settings in default
30    // used with "embark run livenet"
31    livenet: {
32    },
33  
34    // you can name an environment with specific settings and then specify with
35    // "embark run custom_name"
36    //custom_name: {
37    //}
38      // Use this section when you need a specific symmetric or private keys in whisper
39      /*
40      ,keys: {
41        symmetricKey: "your_symmetric_key",// Symmetric key for message decryption
42        privateKey: "your_private_key" // Private Key to be used as a signing key and for message decryption
43      }
44      */
45    //}
46  };