From 232b6e304da2c349c2e6df5788cd8c376214240b Mon Sep 17 00:00:00 2001 From: Haris Razis Date: Mon, 14 Dec 2020 08:50:40 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20Add=20socket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/index.js | 3 +++ client/services/socket.js | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 client/services/socket.js diff --git a/client/index.js b/client/index.js index c9cd42f..92bf9ca 100644 --- a/client/index.js +++ b/client/index.js @@ -1 +1,4 @@ +require('./services/socket') + + console.log('hello world') \ No newline at end of file diff --git a/client/services/socket.js b/client/services/socket.js new file mode 100644 index 0000000..d43db27 --- /dev/null +++ b/client/services/socket.js @@ -0,0 +1,4 @@ +const io = require('socket.io-client'); + +const socket = io('http://localhost:3000'); +