Pārlūkot izejas kodu

Add socket.io client library, add proxy for socket.io

sbkwgh 8 gadi atpakaļ
vecāks
revīzija
6f67c4c824
2 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 4 0
      config/index.js
  2. 1 0
      package.json

+ 4 - 0
config/index.js

@@ -25,6 +25,10 @@ module.exports = {
         '/api': {
             target: 'http://localhost:3000',
             changeOrigin: true
+        },
+        '/socket.io': {
+            target: 'http://localhost:3000',
+            changeOrigin: true
         }
     },
     // CSS Sourcemaps off by default because relative paths are "buggy"

+ 1 - 0
package.json

@@ -13,6 +13,7 @@
     "highlight.js": "^9.10.0",
     "lodash.throttle": "^4.1.1",
     "marked": "^0.3.6",
+    "socket.io-client": "^1.7.3",
     "vue": "^2.1.0",
     "vue-axios": "^1.2.2",
     "vue-router": "^2.1.1",