whio-api-sdk 1.0.202-beta-staging → 1.0.203-beta-staging

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.
@@ -197,29 +197,41 @@ export class WebSocketModule extends BaseClient {
197
197
  });
198
198
  // Application-specific events
199
199
  this.socket.on('connected', (data) => {
200
+ console.log('[WebSocket] Connected event received:', JSON.stringify(data, null, 2));
200
201
  this.emit('connected', data);
201
202
  });
202
203
  this.socket.on('audio-chunk-received', (data) => {
204
+ console.log('[WebSocket] Audio chunk received event:', JSON.stringify(data, null, 2));
203
205
  this.emit('audio-chunk-received', data);
204
206
  });
205
207
  this.socket.on('transcription-complete', (data) => {
208
+ console.log('[WebSocket] Transcription complete event received:', JSON.stringify(data, null, 2));
206
209
  this.emit('transcription-complete', data);
207
210
  });
208
211
  this.socket.on('transcription-queued', (data) => {
212
+ console.log('[WebSocket] Transcription queued event received:', JSON.stringify(data, null, 2));
209
213
  this.emit('transcription-queued', data);
210
214
  });
211
215
  this.socket.on('summary-complete', (data) => {
216
+ console.log('[WebSocket] Summary complete event received:', JSON.stringify(data, null, 2));
212
217
  this.emit('summary-complete', data);
213
218
  });
214
219
  this.socket.on('summary-queued', (data) => {
220
+ console.log('[WebSocket] Summary queued event received:', JSON.stringify(data, null, 2));
215
221
  this.emit('summary-queued', data);
216
222
  });
217
223
  this.socket.on('audio-error', (error) => {
224
+ console.log('[WebSocket] Audio error event received:', JSON.stringify(error, null, 2));
218
225
  this.emit('audio-error', error);
219
226
  });
220
227
  this.socket.on('transcription-error', (error) => {
228
+ console.log('[WebSocket] Transcription error event received:', JSON.stringify(error, null, 2));
221
229
  this.emit('transcription-error', error);
222
230
  });
231
+ // Catch-all event listener for debugging
232
+ this.socket.onAny((eventName, ...args) => {
233
+ console.log(`[WebSocket] Raw event received: "${eventName}"`, JSON.stringify(args, null, 2));
234
+ });
223
235
  }
224
236
  /**
225
237
  * Determine if should attempt reconnection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whio-api-sdk",
3
- "version": "1.0.202-beta-staging",
3
+ "version": "1.0.203-beta-staging",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -248,36 +248,49 @@ export class WebSocketModule extends BaseClient {
248
248
 
249
249
  // Application-specific events
250
250
  this.socket.on('connected', (data: any) => {
251
+ console.log('[WebSocket] Connected event received:', JSON.stringify(data, null, 2));
251
252
  this.emit('connected', data);
252
253
  });
253
254
 
254
255
  this.socket.on('audio-chunk-received', (data: any) => {
256
+ console.log('[WebSocket] Audio chunk received event:', JSON.stringify(data, null, 2));
255
257
  this.emit('audio-chunk-received', data);
256
258
  });
257
259
 
258
260
  this.socket.on('transcription-complete', (data: any) => {
261
+ console.log('[WebSocket] Transcription complete event received:', JSON.stringify(data, null, 2));
259
262
  this.emit('transcription-complete', data);
260
263
  });
261
264
 
262
265
  this.socket.on('transcription-queued', (data: any) => {
266
+ console.log('[WebSocket] Transcription queued event received:', JSON.stringify(data, null, 2));
263
267
  this.emit('transcription-queued', data);
264
268
  });
265
269
 
266
270
  this.socket.on('summary-complete', (data: any) => {
271
+ console.log('[WebSocket] Summary complete event received:', JSON.stringify(data, null, 2));
267
272
  this.emit('summary-complete', data);
268
273
  });
269
274
 
270
275
  this.socket.on('summary-queued', (data: any) => {
276
+ console.log('[WebSocket] Summary queued event received:', JSON.stringify(data, null, 2));
271
277
  this.emit('summary-queued', data);
272
278
  });
273
279
 
274
280
  this.socket.on('audio-error', (error: any) => {
281
+ console.log('[WebSocket] Audio error event received:', JSON.stringify(error, null, 2));
275
282
  this.emit('audio-error', error);
276
283
  });
277
284
 
278
285
  this.socket.on('transcription-error', (error: any) => {
286
+ console.log('[WebSocket] Transcription error event received:', JSON.stringify(error, null, 2));
279
287
  this.emit('transcription-error', error);
280
288
  });
289
+
290
+ // Catch-all event listener for debugging
291
+ this.socket.onAny((eventName: string, ...args: any[]) => {
292
+ console.log(`[WebSocket] Raw event received: "${eventName}"`, JSON.stringify(args, null, 2));
293
+ });
281
294
  }
282
295
 
283
296
  /**