@sinequa/assistant 3.7.7 → 3.7.8
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/chat/chat.component.d.ts +25 -25
- package/chat/types.d.ts +13 -1
- package/chat/websocket-chat.service.d.ts +4 -4
- package/esm2020/chat/types.mjs +2 -1
- package/esm2020/chat/websocket-chat.service.mjs +6 -3
- package/fesm2015/sinequa-assistant-chat.mjs +6 -2
- package/fesm2015/sinequa-assistant-chat.mjs.map +1 -1
- package/fesm2020/sinequa-assistant-chat.mjs +4 -0
- package/fesm2020/sinequa-assistant-chat.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -195,6 +195,7 @@ const connectionSettingsSchema = z.object({
|
|
|
195
195
|
connectionErrorMessage: z.string(),
|
|
196
196
|
restEndpoint: z.string().optional(),
|
|
197
197
|
websocketEndpoint: z.string().optional(),
|
|
198
|
+
signalRSkipNegotiation: z.boolean().optional(),
|
|
198
199
|
signalRTransport: z.enum(["WebSockets", "ServerSentEvents", "LongPolling", "None"]),
|
|
199
200
|
signalRLogLevel: z.enum(["Critical", "Debug", "Error", "Information", "None", "Trace", "Warning"]),
|
|
200
201
|
signalRServerTimeoutInMilliseconds: z.number().optional()
|
|
@@ -1162,6 +1163,8 @@ class WebSocketChatService extends ChatService {
|
|
|
1162
1163
|
return;
|
|
1163
1164
|
}
|
|
1164
1165
|
const logLevel = this._getLogLevel();
|
|
1166
|
+
if (this.assistantConfig$.value?.connectionSettings.signalRSkipNegotiation === true)
|
|
1167
|
+
options = { ...options, skipNegotiation: true };
|
|
1165
1168
|
this.connection = this.signalRService.buildConnection(this.REQUEST_URL, { ...this.defaultOptions, ...options }, logLevel, true);
|
|
1166
1169
|
const signalRServerTimeoutInMilliseconds = this.assistantConfig$.value?.connectionSettings.signalRServerTimeoutInMilliseconds;
|
|
1167
1170
|
if (signalRServerTimeoutInMilliseconds) {
|
|
@@ -1233,6 +1236,7 @@ class WebSocketChatService extends ChatService {
|
|
|
1233
1236
|
transport: this._getTransports(),
|
|
1234
1237
|
withCredentials: true,
|
|
1235
1238
|
headers,
|
|
1239
|
+
skipNegotiation: false,
|
|
1236
1240
|
accessTokenFactory: () => this.authenticationService.processedCredentials?.data?.csrfToken || ""
|
|
1237
1241
|
};
|
|
1238
1242
|
}
|