Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Metin Seylan committed Oct 28, 2016
1 parent 88d8479 commit 7f5fac2
Show file tree
Hide file tree
Showing 16 changed files with 198 additions and 440 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
node_modules/
npm-debug.log
.idea/
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
# Vue-Socket.io
socket.io implemantation for vuejs
note: this repo for vuejs 1, vuejs 2 soon
socket.io implemantation for Vuejs 2.0 and 1.0

## Install

``` bash
npm install vue-socket.io --save
```
or
for Vue 1.0

``` bash
bower install vue-socket.io
npm install vue-socket.io@1.0.2 --save
```

## Usage

``` js
import VueSocketio from 'vue-socket.io'; // for ES6
// var VueSocketio = require('vue-socket.io') // for commonjs
import VueSocketio from 'vue-socket.io';
Vue.use(VueSocketio, 'http://socketserver.com:1923'); // Automaticly socket connect from url string
Expand All @@ -35,7 +32,7 @@ var vm = new Vue({
connect: function(){
console.log('socket connected')
},
customEmit: function(){
customEmit: function(val){
console.log('this method fired by socket server. eg: io.emit("customEmit", data)')
}
},
Expand All @@ -53,7 +50,5 @@ var vm = new Vue({

[Simple Chat App](http://metinseylan.com/vuesocketio/)



## License
[WTFPL](http://www.wtfpl.net/)
24 changes: 0 additions & 24 deletions bower.json

This file was deleted.

4 changes: 4 additions & 0 deletions dist/build.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/build.js.map

Large diffs are not rendered by default.

70 changes: 0 additions & 70 deletions example/index.html

This file was deleted.

49 changes: 0 additions & 49 deletions example/script.js

This file was deleted.

64 changes: 0 additions & 64 deletions example/server/server.js

This file was deleted.

133 changes: 0 additions & 133 deletions example/style.css

This file was deleted.

Loading

1 comment on commit 7f5fac2

@Zenfeder
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Please sign in to comment.