embark/templates/demo/config/communication.js

40 lines
1015 B
JavaScript
Raw Normal View History

2018-06-12 16:59:31 +00:00
module.exports = {
2018-08-21 18:44:58 +00:00
// default applies to all environments
2018-06-12 16:59:31 +00:00
default: {
enabled: true,
provider: "whisper", // Communication provider. Currently, Embark only supports whisper
available_providers: ["whisper"], // Array of available providers
2018-08-21 18:44:58 +00:00
},
// default environment, merges with the settings in default
// assumed to be the intended environment by `embark run`
development: {
2018-06-12 16:59:31 +00:00
connection: {
host: "localhost", // Host of the blockchain node
port: 8546, // Port of the blockchain node
2018-06-18 19:59:48 +00:00
type: "ws" // Type of connection (ws or rpc)
2018-06-12 16:59:31 +00:00
}
}
2018-08-21 18:44:58 +00:00
// merges with the settings in default
// used with "embark run privatenet"
privatenet: {
},
// merges with the settings in default
// used with "embark run testnet"
testnet: {
},
// merges with the settings in default
// used with "embark run livenet"
livenet: {
},
// you can name an environment with specific settings and then specify with
// "embark run custom_name"
//custom_name: {
//}
};