Skip to content

Commit 3a37f87

Browse files
committed
refractor the rtc function naming
1 parent d15defd commit 3a37f87

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## CHANGE LOG
22

3-
## v7.1.4
3+
## v7.1.5
44
- 增加连麦功能
55

66
## v7.1.3

examples/rtc_demo.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ qiniu.room.kickUser('appId', 'roomName', 'userId', credentials, function (err, r
7878
})
7979

8080
// type of(offset limit) = Num such as 5 10
81-
qiniu.room.listActiveRoom('appId', 'prefix', 'offset', 'limit', credentials, function (err, res) {
81+
qiniu.room.listActiveRooms('appId', 'prefix', 'offset', 'limit', credentials, function (err, res) {
8282
if (err) {
8383
console.log(err)
8484
} else {
@@ -95,4 +95,4 @@ var roomAccess = {
9595
'permission': 'admin'
9696
}
9797

98-
console.log(qiniu.room.roomToken(roomAccess, credentials))
98+
console.log(qiniu.room.getRoomToken(roomAccess, credentials))

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "qiniu",
3-
"version": "7.1.4",
3+
"version": "7.1.5",
44
"description": "Node wrapper for Qiniu Resource (Cloud) Storage API",
55
"main": "index.js",
66
"directories": {

qiniu/rtc/room.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ exports.kickUser = function (appId, roomName, userId, credentials, fn) {
101101
get(credentials, options, fn)
102102
}
103103

104-
exports.listActiveRoom = function (appId, roomNamePrefix, offset, limit, credentials, fn) {
104+
exports.listActiveRooms = function (appId, roomNamePrefix, offset, limit, credentials, fn) {
105105
var options = {
106106
host: host,
107107
port: 80,
@@ -112,7 +112,7 @@ exports.listActiveRoom = function (appId, roomNamePrefix, offset, limit, credent
112112
get(credentials, options, fn)
113113
}
114114

115-
exports.roomToken = function (roomAccess, credentials) {
115+
exports.getRoomToken = function (roomAccess, credentials) {
116116
if (!roomAccess.expireAt) {
117117
roomAccess.expireAt = Math.floor(Date.now() / 1000) + 3600;
118118
}

0 commit comments

Comments
 (0)