From 3e94727092edb4f227f742d47567267690b28274 Mon Sep 17 00:00:00 2001 From: Dan Lupascu Date: Thu, 24 Oct 2019 15:39:34 +0300 Subject: [PATCH] Configure the client --- public/index.html | 84 ++++++++++------------------------------------- public/index.js | 10 ++++++ 2 files changed, 27 insertions(+), 67 deletions(-) create mode 100644 public/index.js diff --git a/public/index.html b/public/index.html index 73128e5..8e1e477 100644 --- a/public/index.html +++ b/public/index.html @@ -1,75 +1,25 @@ - A FeathersJS application - + FeathersJS auction example - + + -
- - - -
+
+ + + + + + + + + + + + + diff --git a/public/index.js b/public/index.js new file mode 100644 index 0000000..0eab4f3 --- /dev/null +++ b/public/index.js @@ -0,0 +1,10 @@ +/* eslint-disable no-undef */ +// Establish a Socket.io connection +const socket = io(); +// Initialize the application through Socket.io +const app = feathers(); + +// Connect to the server using the Socket.io connection +app.configure(feathers.socketio(socket)); + +// All the code will go here