We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我在尝试复现此程序时候,操作步骤是这样的。
"vue-socket.io": "^3.0.10",
Vue.use(Vant, new VueSocketIO({ debug: false, // debug调试,生产建议关闭 connection: "http://localhost:9999", vuex: { store, actionPrefix: 'SOCKET_', mutationPrefix: 'SOCKET_' }, options: { //Optional options, autoConnect: false, // 自动连接 这里为我项目需求 需要在指定情况下才连接socket path: "/ws", transports: ['websocket'] } }) )
this.$socket.emit("hell","hello")
结果 浏览器控制台打印如下
希望得到你的帮助.....thanks
The text was updated successfully, but these errors were encountered:
你好啊,我复现了你的问题:
Vue.use(ElementUI, new VueSocketIO({ debug: false, // debug调试,生产建议关闭 connection: "http://localhost:3000", vuex: { store, actionPrefix: 'SOCKET_', mutationPrefix: 'SOCKET_' }, options: { //Optional options, autoConnect:false, //关闭自动连接,在用户登录后在连接。 } }) );
是这样的,vue使用插件建议分开use,问题应该是你将你的vant跟socketIO放在一个use中去注册使用了。 你可以分开写:Vue.use(A).use(B),看看能不能使用socket进行通信。如果不行,再反馈,我再帮你看看~期待回复。
Sorry, something went wrong.
博主能加下我QQ嘛 qq:2528358258 救命
wf0
No branches or pull requests
我在尝试复现此程序时候,操作步骤是这样的。
结果 浏览器控制台打印如下
希望得到你的帮助.....thanks
The text was updated successfully, but these errors were encountered: