Skip to content

Commit

Permalink
Added mqtt ban.list (listBans) method (event)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkonst committed Dec 1, 2021
1 parent 18563ca commit 80d3976
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ulms/api-clients",
"version": "4.11.0",
"version": "4.12.0",
"description": "JavaScript API clients for ULMS platform",
"keywords": [],
"homepage": "https://github.com/netology-group/ulms-api-clients-js#readme",
Expand Down
13 changes: 13 additions & 0 deletions src/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@ class Event extends Service {
return this._rpc.send('agent.update', params)
}

/**
* List bans in room
* @param room_id
* @returns {Promise}
*/
listBans (room_id) {
const params = {
room_id
}

return this._rpc.send('ban.list', params)
}

/**
* Create event
* @param room_id
Expand Down

0 comments on commit 80d3976

Please sign in to comment.