1.0.12 • Published 5 years ago

socketclient-vue v1.0.12

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Socket Client

Welcome!

Communication

  • If you need help or have a general question, contact

Install Socket Client SDK

npm install socketclient-vue

How to use SocketClient Vue

SocketClient Vue must be installed like a plugin.

import Vue from 'vue';
import SocketClientVue from 'socketclient-vue';
import App from './App';

Vue.use(SocketClientVue, { subscribeKey: 'YOUR SUBSCRIBE KEY HERE', socketDomain: 'YOUR SOCKET DOMAIN HERE' });

new Vue({
  el: '#app',
  template: '<App/>',
  components: { App },
});

Where subscribe

Use the hook mounted to subscribe channels using $scSubscribe method

export default {
  name: 'app',
  mounted() {
    this.$scSubscribe({ channels: 'ch1 });
  },
};
1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago