Skip to content

Commit

Permalink
Merge pull request #59 from Jddl/main
Browse files Browse the repository at this point in the history
fix System.IO.InvalidDataException: Expected 'streamIds' to be of typ…
  • Loading branch information
jamiewest authored Jul 16, 2021
2 parents 030eab0 + 1849c9d commit 00a3cb7
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 00a3cb7

Please sign in to comment.