Skip to content

Commit

Permalink
Added kcapp logo
Browse files Browse the repository at this point in the history
  • Loading branch information
thordy authored Sep 21, 2019
1 parent 89c18ad commit 788148a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# kcapp-sio-client
socket io client for kcapp
![kcapp logo](https://raw.githubusercontent.com/kcapp/frontend/master/public/images/logo.png)

# sio-client
[socket io](https://socket.io/) client for consuming live events from [kcapp](https://github.com/kcapp/frontend)


## Usage
```javascript
var kcapp = require('kcapp-sio-client/kcapp')("<server ip>", <server port>);
kcapp.connect(() => {
kcapp.on('new_match', (data) => {
// New match started
});
// Additional callbacks ...
});
```

0 comments on commit 788148a

Please sign in to comment.