@absolutejs/voice 0.0.2 → 0.0.3

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.
@@ -366,6 +366,7 @@ var createVoiceStreamStore = () => {
366
366
  state = {
367
367
  ...state,
368
368
  error: null,
369
+ isConnected: action.status === "active",
369
370
  sessionId: action.sessionId,
370
371
  status: action.status
371
372
  };
@@ -408,7 +409,6 @@ var createVoiceStream = (path, options = {}) => {
408
409
  notify();
409
410
  }
410
411
  });
411
- store.dispatch({ type: "connected" });
412
412
  return {
413
413
  close() {
414
414
  unsubscribeConnection();
@@ -362,6 +362,7 @@ var createVoiceStreamStore = () => {
362
362
  state = {
363
363
  ...state,
364
364
  error: null,
365
+ isConnected: action.status === "active",
365
366
  sessionId: action.sessionId,
366
367
  status: action.status
367
368
  };
@@ -404,7 +405,6 @@ var createVoiceStream = (path, options = {}) => {
404
405
  notify();
405
406
  }
406
407
  });
407
- store.dispatch({ type: "connected" });
408
408
  return {
409
409
  close() {
410
410
  unsubscribeConnection();
@@ -366,6 +366,7 @@ var createVoiceStreamStore = () => {
366
366
  state = {
367
367
  ...state,
368
368
  error: null,
369
+ isConnected: action.status === "active",
369
370
  sessionId: action.sessionId,
370
371
  status: action.status
371
372
  };
@@ -408,7 +409,6 @@ var createVoiceStream = (path, options = {}) => {
408
409
  notify();
409
410
  }
410
411
  });
411
- store.dispatch({ type: "connected" });
412
412
  return {
413
413
  close() {
414
414
  unsubscribeConnection();
@@ -363,6 +363,7 @@ var createVoiceStreamStore = () => {
363
363
  state = {
364
364
  ...state,
365
365
  error: null,
366
+ isConnected: action.status === "active",
366
367
  sessionId: action.sessionId,
367
368
  status: action.status
368
369
  };
@@ -405,7 +406,6 @@ var createVoiceStream = (path, options = {}) => {
405
406
  notify();
406
407
  }
407
408
  });
408
- store.dispatch({ type: "connected" });
409
409
  return {
410
410
  close() {
411
411
  unsubscribeConnection();
package/dist/vue/index.js CHANGED
@@ -366,6 +366,7 @@ var createVoiceStreamStore = () => {
366
366
  state = {
367
367
  ...state,
368
368
  error: null,
369
+ isConnected: action.status === "active",
369
370
  sessionId: action.sessionId,
370
371
  status: action.status
371
372
  };
@@ -408,7 +409,6 @@ var createVoiceStream = (path, options = {}) => {
408
409
  notify();
409
410
  }
410
411
  });
411
- store.dispatch({ type: "connected" });
412
412
  return {
413
413
  close() {
414
414
  unsubscribeConnection();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",