vue-chat-client

0.0.10 • Public • Published

Vue logo

vue-chat-client

Downloads Version License

This is a chat client for Vue.js

Installation

NPM + ES2015

npm install vue-chat-client --save
import Vue from 'vue'
import ChatClient from 'vue-chat-client'
Vue.component('chat-client', ChatClient)

Usage

export default {
  data() {
    return: {
      feeds: [
        {
          type: 'message',
          uid: 'UID',
          text: 'Example message'
        }
      ]
    }
  }
}
<!-- bind to it normally in templates -->
<chat-client :feeds="feeds"/>

Development Setup

# install dependencies
npm install
 
# serve with hot reload at localhost:8080
npm run dev
 
# build for production with minification
npm run build
 
# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

License

MIT

Copyright (c) 2018-present, Trinketmage

Readme

Keywords

none

Package Sidebar

Install

npm i vue-chat-client

Weekly Downloads

1

Version

0.0.10

License

MIT

Unpacked Size

26.8 kB

Total Files

13

Last publish

Collaborators

  • trinketmage