@pipecat-ai/websocket-transport 1.6.0 → 1.6.2
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.d.ts.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +2 -3
- package/dist/index.module.js.map +1 -1
- package/package.json +11 -4
package/dist/index.module.js
CHANGED
|
@@ -4162,6 +4162,7 @@ class $7f42eda74f1b1632$export$de21836fc42c6f9c extends (0, $kR6tG$Transport) {
|
|
|
4162
4162
|
this._mediaManager.setUserAudioCallback(this.handleUserAudioStream.bind(this));
|
|
4163
4163
|
this._ws = null;
|
|
4164
4164
|
this._serializer = opts.serializer || new (0, $a6c080dc51c9687f$export$4b2026f8e11b148a)();
|
|
4165
|
+
this._maxMessageSize = 1048576; // python websockets default to 1MB
|
|
4165
4166
|
}
|
|
4166
4167
|
initialize(options, messageHandler) {
|
|
4167
4168
|
this._options = options;
|
|
@@ -4351,9 +4352,7 @@ class $7f42eda74f1b1632$export$de21836fc42c6f9c extends (0, $kR6tG$Transport) {
|
|
|
4351
4352
|
}
|
|
4352
4353
|
}
|
|
4353
4354
|
connectionError(errorMsg) {
|
|
4354
|
-
|
|
4355
|
-
this.state = "error";
|
|
4356
|
-
this.disconnect();
|
|
4355
|
+
this._callbacks.onError?.((0, $kR6tG$RTVIMessage).error(errorMsg, true));
|
|
4357
4356
|
}
|
|
4358
4357
|
// Not implemented
|
|
4359
4358
|
enableScreenShare(enable) {
|