Skip to content

Commit

Permalink
fix System.IO.InvalidDataException: Expected 'streamIds' to be of typ…
Browse files Browse the repository at this point in the history
…e Array.
  • Loading branch information
Jddl committed Jun 9, 2021
1 parent 030eab0 commit 1849c9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/src/hub_connection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ class HubConnection {
});
_reconnectDelayHandle = null;

if (_connectionState == null || _connectionState != HubConnectionState.reconnecting) {
if (_connectionState == null ||
_connectionState != HubConnectionState.reconnecting) {
_logger!(LogLevel.debug,
'Connection left the reconnecting state during reconnect delay. Done reconnecting.');
return;
Expand Down Expand Up @@ -847,6 +848,7 @@ class HubConnection {
} else {
return InvocationMessage(
arguments: args,
streamIds: [],
target: methodName,
);
}
Expand All @@ -867,6 +869,7 @@ class HubConnection {
return InvocationMessage(
arguments: args,
invocationId: invocationId.toString(),
streamIds: [],
target: methodName,
);
}
Expand Down Expand Up @@ -894,6 +897,7 @@ class HubConnection {
return StreamInvocationMessage(
arguments: args,
invocationId: invocationId.toString(),
streamIds: [],
target: methodName,
);
}
Expand Down

0 comments on commit 1849c9d

Please sign in to comment.