@robotical/webapp-types 3.18.10 → 3.18.11
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.
|
@@ -60,8 +60,6 @@ import { WrapperSentMessage } from "../../../types/communication-between-apps/wr
|
|
|
60
60
|
var SHOW_LOGS = true;
|
|
61
61
|
var TAG = "MartyConnector";
|
|
62
62
|
var UNPLUGGED_MODE_CHECK_TIMEOUT_MS = 750;
|
|
63
|
-
var WEB_BLE_ASSUMED_MTU = 185;
|
|
64
|
-
var WEB_BLE_STREAM_BLOCK_SIZE = Math.floor(WEB_BLE_ASSUMED_MTU * 0.9);
|
|
65
63
|
var WEB_BLE_AUDIO_BLOCKS_WITHOUT_PAUSE = 0;
|
|
66
64
|
var timeout = function (promise, timeoutMs) {
|
|
67
65
|
var timeoutId;
|
|
@@ -81,7 +79,7 @@ var MartyConnector = /** @class */ (function (_super) {
|
|
|
81
79
|
_this.type = RaftTypeE.MARTY;
|
|
82
80
|
if (connectionMethod === RaftConnectionMethod.WEB_BLE) {
|
|
83
81
|
var streamHandler = _this.connManager.getConnector().getStreamHandler();
|
|
84
|
-
|
|
82
|
+
// RaftJS chunks logical stream blocks to the safe Web Bluetooth write size.
|
|
85
83
|
streamHandler.setNumBlocksWithoutPause(WEB_BLE_AUDIO_BLOCKS_WITHOUT_PAUSE);
|
|
86
84
|
}
|
|
87
85
|
return _this;
|