summaryrefslogtreecommitdiff
path: root/client/components/App.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/App.jsx')
-rw-r--r--client/components/App.jsx12
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>