소스 검색

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

sbkwgh 8 년 전
부모
커밋
6f67c4c824
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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",