@3dsource/angular-unreal-module 0.0.24 → 0.0.26

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.
@@ -3220,38 +3220,21 @@ class UnrealEffects {
3220
3220
  this.store.select(unrealFeature.selectAwsInstance),
3221
3221
  this.store.select(unrealFeature.selectStreamClientCompanyId),
3222
3222
  this.store.select(unrealFeature.selectStreamViewId),
3223
- ]), switchMap(([action, instance, companyId, viewId]) => {
3224
- console.log('this.unrealInitialConfig?.customErrorsEndpoint', this.unrealInitialConfig?.customErrorsEndpoint);
3225
- console.log('data', {
3226
- client: instance.pollingUrl,
3227
- session_uuid: companyId,
3228
- session_uuid2: viewId,
3229
- message: {
3230
- type: 'front',
3231
- error: `pak_not_found::${action?.error ?? ''}`,
3232
- signalling: instance.pollingUrl,
3233
- },
3234
- });
3235
- return this.http
3236
- .post(this.unrealInitialConfig?.customErrorsEndpoint || '', {
3237
- client: instance.pollingUrl,
3238
- session_uuid: companyId,
3239
- session_uuid2: viewId,
3240
- message: {
3241
- type: 'front',
3242
- error: `pak_not_found::${action?.error ?? ''}`,
3243
- signalling: instance.pollingUrl,
3244
- },
3245
- })
3246
- .pipe(mapResponse({
3247
- next: () => {
3248
- console.log('mapResponse next success');
3249
- },
3250
- error: () => {
3251
- console.log('mapResponse next error');
3252
- },
3253
- }));
3254
- }));
3223
+ ]), switchMap(([action, instance, companyId, viewId]) => this.http
3224
+ .post(this.unrealInitialConfig?.customErrorsEndpoint || '', {
3225
+ client: instance.pollingUrl,
3226
+ session_uuid: companyId,
3227
+ session_uuid2: viewId,
3228
+ message: {
3229
+ type: 'front',
3230
+ error: 'pak_not_found',
3231
+ info: action?.error ?? '',
3232
+ },
3233
+ })
3234
+ .pipe(mapResponse({
3235
+ next: () => console.log(`successfully send to ${this.unrealInitialConfig?.customErrorsEndpoint}`),
3236
+ error: () => console.error(`get error from ${this.unrealInitialConfig?.customErrorsEndpoint}`),
3237
+ }))));
3255
3238
  }, { dispatch: false });
3256
3239
  this.initAppBySetDataChannelConnected$ = createEffect(() => {
3257
3240
  return this.actions$.pipe(ofType(setDataChannelConnected), tap(() => {