I am using vue-socket-io with vuejs2 but facing a problem in the start. I can't seem to make a connection with socket-io. I have followed the exact documentation but every time the call goes it gets an error of 404 not found.
build.js?a270:1 GET http://localhost:8080/socket.io/?EIO=3&transport=polling&t=L-T2-Vp 404
This is the error I am getting on the console
@ ./src/main.js 5:0-33 @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
I haven't added much line of code in main.js file. Here is the main block that is adding socket
import VueSocketio from 'vue-socket.io';
Vue.use(VueSocketio, 'http://localhost:8080/');
main.jsfile you're referring to? If you're modifying themain.jsfile in thevue-socket.iolibrary, then that's probably you're problem.vue-socket.iois not a skeleton project that you add your code to, it's a library that you're supposed to use to build your own project. If you modify the library itself, don't be surprised if it ends up breaking.