+ Listen To channel
+
+
+ this.handleChange(e, 'listenTo')}/>
+
+
+
+
+ {this.props.subscriptions && this.props.subscriptions.length > 0 &&
+
+
Subscribed channels:
+
+ {this.props.subscriptions.map((item, i) => {item})}
+
+
+ }
+
+ {this.props.channels && Boolean(Object.keys(this.props.channels).length) &&
+
+ Messages received:
+
+
+ {Object.keys(this.props.channels).map((channelName, i) => {
+ return (
+
+
+ {this.props.channels[channelName].map((data, f) => {
+ return {data.message}
;
+ })}
+
+
+ );
+ })}
+
+
+ }
+
+ Send Message
+
+
+
+ this.handleChange(e, 'channel')}/>
+
+
+ this.handleChange(e, 'message')}/>
+
+
+
+
+
+ );
+ }
+}
+
+Communication.propTypes = {
+ sendMessage: PropTypes.func,
+ listenToMessages: PropTypes.func,
+ subscriptions: PropTypes.array,
+ channels: PropTypes.object
+};
+
+export default Communication;
+
diff --git a/embark-ui/src/components/ExplorerLayout.js b/embark-ui/src/components/ExplorerLayout.js
index bb7299c7..e98f7586 100644
--- a/embark-ui/src/components/ExplorerLayout.js
+++ b/embark-ui/src/components/ExplorerLayout.js
@@ -10,9 +10,12 @@ import AccountsContainer from '../containers/AccountsContainer';
import AccountContainer from '../containers/AccountContainer';
import BlocksContainer from '../containers/BlocksContainer';
import BlockContainer from '../containers/BlockContainer';
+import CommunicationContainer from '../containers/CommunicationContainer';
import TransactionsContainer from '../containers/TransactionsContainer';
import TransactionContainer from '../containers/TransactionContainer';
+const className = "d-flex align-items-center";
+
const ExplorerLayout = () => (