rol-websocket-channel 1.8.5 → 1.8.6
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/dist/index.js +2 -2
- package/index.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -307,7 +307,7 @@ const WebSocketChannel = {
|
|
|
307
307
|
if (targetTopic.endsWith("#")) {
|
|
308
308
|
targetTopic = targetTopic.slice(0, -1) + "bot";
|
|
309
309
|
}
|
|
310
|
-
conn.ws.publish(targetTopic, message, { retain:
|
|
310
|
+
conn.ws.publish(targetTopic, message, { retain: false });
|
|
311
311
|
return { ok: true };
|
|
312
312
|
},
|
|
313
313
|
// sendMedia:框架传入字段见 ChannelMessageSendMediaContext(to = senderId,无 sessionKey/trace_id)
|
|
@@ -337,7 +337,7 @@ const WebSocketChannel = {
|
|
|
337
337
|
if (targetTopic.endsWith("#")) {
|
|
338
338
|
targetTopic = targetTopic.slice(0, -1) + "bot";
|
|
339
339
|
}
|
|
340
|
-
conn.ws.publish(targetTopic, message, { retain:
|
|
340
|
+
conn.ws.publish(targetTopic, message, { retain: false });
|
|
341
341
|
return { ok: true };
|
|
342
342
|
},
|
|
343
343
|
},
|
package/index.ts
CHANGED
|
@@ -375,7 +375,7 @@ const WebSocketChannel: any = {
|
|
|
375
375
|
targetTopic = targetTopic.slice(0, -1) + "bot";
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
conn.ws.publish(targetTopic, message, { retain:
|
|
378
|
+
conn.ws.publish(targetTopic, message, { retain: false });
|
|
379
379
|
return { ok: true };
|
|
380
380
|
},
|
|
381
381
|
|
|
@@ -410,7 +410,7 @@ const WebSocketChannel: any = {
|
|
|
410
410
|
targetTopic = targetTopic.slice(0, -1) + "bot";
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
-
conn.ws.publish(targetTopic, message, { retain:
|
|
413
|
+
conn.ws.publish(targetTopic, message, { retain: false });
|
|
414
414
|
return { ok: true };
|
|
415
415
|
},
|
|
416
416
|
},
|