|
|
@ -1,5 +1,6 @@ |
|
|
|
// @flow
|
|
|
|
import React, { Component } from 'react' |
|
|
|
import Websocket from 'react-websocket' |
|
|
|
import Form from './components/Form' |
|
|
|
import Nav from './components/Nav.js' |
|
|
|
import styles from './App.scss' |
|
|
@ -55,6 +56,12 @@ class App extends Component { |
|
|
|
<div className={styles.content}> |
|
|
|
{children} |
|
|
|
</div> |
|
|
|
|
|
|
|
<Websocket |
|
|
|
debug |
|
|
|
url='ws://localhost:3000/' |
|
|
|
onMessage={(data) => console.log('data: ', data)} |
|
|
|
/> |
|
|
|
</div> |
|
|
|
) |
|
|
|
} |
|
|
|