with Vue.js

This project is an adaptation of to Vue.js. It allows its users to use socket's cababilities easy within a Vue project.

Socket.IO enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.

Usage example:


  npm install --save

for Vue 1.0

  npm install --save


import VueSocketio from '';

Vue.use(VueSocketio, ''); // Automaticly socket connect from url string

  import socketio from '';

  var ioInstance = socketio('');

  Vue.use(VueSocketio, ioInstance); // bind custom socketio instance

var vm = new Vue({
    connect: function(){
      console.log('socket connected')
    customEmit: function(val){
      console.log('this method fired by socket server. eg: io.emit("customEmit", data)')
  methods: {
    clickButton: function(val){
        // $socket is instance
        this.$socket.emit('emit_method', val);

Watch a live example, and visit its GitHub page.