@reactoo/watchtogether-sdk-js 2.8.27 → 2.8.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/models/room.js
CHANGED
|
@@ -188,13 +188,14 @@ let room = function () {
|
|
|
188
188
|
.then(client => client.apis.wt.getRoomChatList(apiParams))
|
|
189
189
|
},
|
|
190
190
|
|
|
191
|
-
getRoomsList: ({ type = 'participant', activeOnly = null, instanceType = this.__instanceType, size = 20, startKey = null, includeWtEventModels = false, demo = false, viewType = 'list', wtChannelId = undefined} = {}) => {
|
|
191
|
+
getRoomsList: ({ type = 'participant', activeOnly = null, instanceType = this.__instanceType, fulltextPhrase = null, size = 20, startKey = null, includeWtEventModels = false, demo = false, viewType = 'list', wtChannelId = undefined} = {}) => {
|
|
192
192
|
let apiParams = {
|
|
193
193
|
type, instanceType,
|
|
194
194
|
size,
|
|
195
195
|
includeWtEventModels,
|
|
196
196
|
demo,
|
|
197
197
|
viewType,
|
|
198
|
+
...(fulltextPhrase && {fulltextPhrase}),
|
|
198
199
|
...(wtChannelId && {wtChannelId}),
|
|
199
200
|
...(activeOnly && {activeOnly}),
|
|
200
201
|
...(startKey && {startKey})
|
|
@@ -914,7 +914,7 @@ class RoomSession {
|
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
|
|
917
|
-
async sendMessage(handleId, message = {body: 'Example Body'}, dontWait = false, dontResolveOnAck = false, retry =
|
|
917
|
+
async sendMessage(handleId, message = {body: 'Example Body'}, dontWait = false, dontResolveOnAck = false, retry = 1) {
|
|
918
918
|
return this.#send({
|
|
919
919
|
"janus": "message",
|
|
920
920
|
"handle_id": handleId,
|
|
@@ -937,7 +937,7 @@ class RoomSession {
|
|
|
937
937
|
})
|
|
938
938
|
}
|
|
939
939
|
|
|
940
|
-
async #sendHTTP(request = {}, ignoreResponse = false, dontResolveOnAck = false, retry =
|
|
940
|
+
async #sendHTTP(request = {}, ignoreResponse = false, dontResolveOnAck = false, retry = 1) {
|
|
941
941
|
let transaction = RoomSession.randomString(12);
|
|
942
942
|
let requestData = {
|
|
943
943
|
...request,
|
|
@@ -965,7 +965,7 @@ class RoomSession {
|
|
|
965
965
|
})
|
|
966
966
|
}
|
|
967
967
|
|
|
968
|
-
async #sendWebsockets(request = {}, ignoreResponse = false, dontResolveOnAck = false, retry =
|
|
968
|
+
async #sendWebsockets(request = {}, ignoreResponse = false, dontResolveOnAck = false, retry = 1) {
|
|
969
969
|
let transaction = RoomSession.randomString(12);
|
|
970
970
|
let requestData = {
|
|
971
971
|
...request,
|