aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/ProxyApp.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/components/ProxyApp.jsx')
-rw-r--r--web/src/js/components/ProxyApp.jsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/web/src/js/components/ProxyApp.jsx b/web/src/js/components/ProxyApp.jsx
index c458639d..b5d59b76 100644
--- a/web/src/js/components/ProxyApp.jsx
+++ b/web/src/js/components/ProxyApp.jsx
@@ -3,6 +3,7 @@ import ReactDOM from 'react-dom'
import _ from 'lodash'
import { connect } from 'react-redux'
+import { connect as wsConnect } from '../ducks/websocket'
import Header from './Header'
import EventLog from './EventLog'
import Footer from './Footer'
@@ -35,6 +36,10 @@ class ProxyAppMain extends Component {
this.onSettingsChange = this.onSettingsChange.bind(this)
}
+ componentWillMount() {
+ this.props.wsConnect()
+ }
+
/**
* @todo move to actions
*/
@@ -161,5 +166,8 @@ class ProxyAppMain extends Component {
export default connect(
state => ({
showEventLog: state.eventLog.visible
- })
+ }),
+ {
+ wsConnect,
+ }
)(ProxyAppMain)