Skip to content

Commit

Permalink
Merge pull request #17 from ekko-live/feature/add-presence
Browse files Browse the repository at this point in the history
✨ Add presence
  • Loading branch information
wLotherington authored Apr 27, 2021
2 parents 3698e46 + ef7dea6 commit b98c6e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ekko.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Ekko {
});
}

addListener({ message, status }) {
addListener({ message, status, presence }) {
const on = (eventName, callback) => {
this.socket.on(eventName, (payload) => {
if (callback) callback(payload);
Expand All @@ -30,6 +30,7 @@ class Ekko {

on("message", message);
on("status", status);
on("status", presence);
}

subscribe(params) {
Expand Down

0 comments on commit b98c6e6

Please sign in to comment.