Skip to content

Commit 933f5fa

Browse files
authored
Merge pull request #2 from BridgeEast/fix-argument-error-on-ios
fix: fix error Argument 2 (JS::NativeWebSocketModule::SpecConnectOpti…
2 parents 81d8d5f + 8f7d39e commit 933f5fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class ReconnectingWebSocket extends WebSocket{
9090
WebSocketModule.connect(
9191
this.url,
9292
this.protocols,
93-
this.headers,
93+
this.headers || {},
9494
this._socketId,
9595
);
9696
this.onconnecting({reconnectAttempts:this.reconnectAttempts})

0 commit comments

Comments
 (0)