I tried using vue-socket.io plugin and I had the error:
ReferenceError: document is not defined
at o.doPoll (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:47114)
at o.r.poll (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:16477)
at o.r.doOpen (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:15948)
at o.r.open (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:10153)
at r.open (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:40613)
at new r (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:38742)
at r (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:36745)
at r.open.r.connect (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:21977)
at new r (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:20316)
at r (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:19539)
using Nuxt.js it is possible to register the plugin by specifying ssr: false
I tried using vue-socket.io plugin and I had the error: ReferenceError: document is not defined at o.doPoll (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:47114) at o.r.poll (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:16477) at o.r.doOpen (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:15948) at o.r.open (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:10153) at r.open (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:40613) at new r (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:38742) at r (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:36745) at r.open.r.connect (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:21977) at new r (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:20316) at r (/Applications/XAMPP/xamppfiles/htdocs/Zion Group/Zuumpay/webclient/node_modules/vue-socket.io/dist/build.js:1:19539)
using Nuxt.js it is possible to register the plugin by specifying
ssr: false