From 3d3a7b80d34c100846c8ae130b424b63ba3c0784 Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Fri, 7 Jul 2017 19:18:48 +0200
Subject: socket io communication

---
 client/components/App.jsx | 12 ++++++++++++
 1 file changed, 12 insertions(+)

(limited to 'client/components/App.jsx')

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>
-- 
cgit v1.2.3-70-g09d2

