[CORD-1232] Filtering events based on updated properies
Change-Id: If96da2f5c987f487b4d8b9ec7c68e44869cb4e12
diff --git a/conf/browsersync.conf.js b/conf/browsersync.conf.js
index 391f688..3f262ba 100644
--- a/conf/browsersync.conf.js
+++ b/conf/browsersync.conf.js
@@ -1,6 +1,7 @@
const conf = require('./gulp.conf');
const proxy = require('./proxy').proxy;
const extensionsProxy = require('./proxy').extensionsProxy;
+const socketProxy = require('./proxy').socketProxy;
module.exports = function () {
return {
@@ -10,9 +11,12 @@
conf.paths.src
],
middleware: function(req, res, next){
- if (req.url.indexOf('xosapi') !== -1 || req.url.indexOf('socket.io') !== -1) {
+ if (req.url.indexOf('xosapi') !== -1) {
proxy.web(req, res);
}
+ else if (req.url.indexOf('socket.io') !== -1) {
+ socketProxy.web(req, res);
+ }
else if (req.url.indexOf('extensions') !== -1) {
extensionsProxy.web(req, res);
}