### Version 3.0.1 ### Reproduction link [https://github.com/liuhanqu/vuecli-demo](https://github.com/liuhanqu/vuecli-demo) ### Node and OS info npm: 6.2.0, os: mac ### Steps to reproduce 1. cd client && npm i && npm run serve 2. cd server && npm i && npm start 3. open browser to 'http://localhost:8888/laboratory' ### What is expected? websocket connect success ### What is actually happening? websocket fail to connect ### bug image  <!-- generated by vue-issues. DO NOT REMOVE -->