From 788148aeaf2a520b4ade7c4e2e4b9018595330d3 Mon Sep 17 00:00:00 2001 From: Thord Setsaas Date: Sat, 21 Sep 2019 13:25:38 +0200 Subject: [PATCH] Added kcapp logo --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7b83cd0..ef95e47 100644 --- a/README.md +++ b/README.md @@ -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')("", ); +kcapp.connect(() => { + kcapp.on('new_match', (data) => { + // New match started + }); + // Additional callbacks ... +}); +```