diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-07-07 19:18:48 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-07-07 19:18:48 +0200 |
| commit | 3d3a7b80d34c100846c8ae130b424b63ba3c0784 (patch) | |
| tree | 83ba690e72c353b16a3b78c95c2b77ff4c5eee39 /client/components/App.jsx | |
| parent | b89147ecd38b0f95a2e4917aba7f44bf3bb70327 (diff) | |
socket io communication
Diffstat (limited to 'client/components/App.jsx')
| -rw-r--r-- | client/components/App.jsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/client/components/App.jsx b/client/components/App.jsx index 0af326f..b3da081 100644 --- a/client/components/App.jsx +++ b/client/components/App.jsx @@ -8,6 +8,18 @@ import Tasks from './Tasks/Tasks.jsx' import client from '../client' +var socket = io(window.location.origin) + +socket.on('connect', (data) => { + console.log('connected') +}) +socket.on('worker', (data) => { + console.log('worker connected', data) +}) +socket.on('processed', (data) => { + console.log('processed', data) +}) + const App = () => { return ( <div> |
