Giter Site home page Giter Site logo

博主你好,在尝试复现该程序的是否遇到问题给我造成较长事件的困扰希望得到你的帮助。 about socket.io HOT 2 CLOSED

jimisun123 avatar jimisun123 commented on June 26, 2024
博主你好,在尝试复现该程序的是否遇到问题给我造成较长事件的困扰希望得到你的帮助。

from socket.io.

Comments (2)

wf0 avatar wf0 commented on June 26, 2024

你好啊,我复现了你的问题:
image


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进行通信。如果不行,再反馈,我再帮你看看~期待回复。

from socket.io.

OnZeng avatar OnZeng commented on June 26, 2024

博主能加下我QQ嘛 qq:2528358258 救命

from socket.io.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.