@portal-hq/connect 0.3.6 → 0.3.7

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.
@@ -151,12 +151,6 @@ class PortalConnect {
151
151
  socket.close();
152
152
  break;
153
153
  case 'connected':
154
- const { active } = message.data;
155
- if (!active) {
156
- // Proxy is not connected to the bridge
157
- console.warn(`PortalConnect could not establish a connection to the relay.`);
158
- return;
159
- }
160
154
  this.connected = true;
161
155
  this.emit('connect', {
162
156
  uri,
package/lib/esm/index.js CHANGED
@@ -149,12 +149,6 @@ class PortalConnect {
149
149
  socket.close();
150
150
  break;
151
151
  case 'connected':
152
- const { active } = message.data;
153
- if (!active) {
154
- // Proxy is not connected to the bridge
155
- console.warn(`PortalConnect could not establish a connection to the relay.`);
156
- return;
157
- }
158
152
  this.connected = true;
159
153
  this.emit('connect', {
160
154
  uri,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portal-hq/connect",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "main": "lib/commonjs/index",
5
5
  "module": "lib/esm/index",
6
6
  "source": "src/index",
package/src/index.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import Portal from '@portal-hq/core'
2
2
  import type {
3
- ConnectResult,
4
3
  EventHandler,
5
4
  PortalConnectOptions,
6
5
  RegisteredEventHandler,
@@ -186,15 +185,6 @@ class PortalConnect {
186
185
  socket.close()
187
186
  break
188
187
  case 'connected':
189
- const { active } = message.data as ConnectResult
190
- if (!active) {
191
- // Proxy is not connected to the bridge
192
- console.warn(
193
- `PortalConnect could not establish a connection to the relay.`,
194
- )
195
- return
196
- }
197
-
198
188
  this.connected = true
199
189
  this.emit('connect', {
200
190
  uri,