Giter Site home page Giter Site logo

socket.io's People

Contributors

wf0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

socket.io's Issues

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

我在尝试复现此程序时候,操作步骤是这样的。

  1. 安装
"vue-socket.io": "^3.0.10",
  1. 配置
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']
        }
    })
)
  1. 尝试在组件中发送事件
 this.$socket.emit("hell","hello")

结果 浏览器控制台打印如下
image

希望得到你的帮助.....thanks

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.