Skip to content

Commit 4839039

Browse files
authored
Update HubConnection.ts to provide a easier to read order of SignalR Message parameters (#51559)
1 parent e08f15f commit 4839039

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/SignalR/clients/ts/signalr/src/HubConnection.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -994,15 +994,15 @@ export class HubConnection {
994994
if (nonblocking) {
995995
if (streamIds.length !== 0) {
996996
return {
997+
target: methodName,
997998
arguments: args,
998999
streamIds,
999-
target: methodName,
10001000
type: MessageType.Invocation,
10011001
};
10021002
} else {
10031003
return {
1004-
arguments: args,
10051004
target: methodName,
1005+
arguments: args,
10061006
type: MessageType.Invocation,
10071007
};
10081008
}
@@ -1012,17 +1012,17 @@ export class HubConnection {
10121012

10131013
if (streamIds.length !== 0) {
10141014
return {
1015+
target: methodName,
10151016
arguments: args,
10161017
invocationId: invocationId.toString(),
10171018
streamIds,
1018-
target: methodName,
10191019
type: MessageType.Invocation,
10201020
};
10211021
} else {
10221022
return {
1023+
target: methodName,
10231024
arguments: args,
10241025
invocationId: invocationId.toString(),
1025-
target: methodName,
10261026
type: MessageType.Invocation,
10271027
};
10281028
}
@@ -1096,17 +1096,17 @@ export class HubConnection {
10961096

10971097
if (streamIds.length !== 0) {
10981098
return {
1099+
target: methodName,
10991100
arguments: args,
11001101
invocationId: invocationId.toString(),
11011102
streamIds,
1102-
target: methodName,
11031103
type: MessageType.StreamInvocation,
11041104
};
11051105
} else {
11061106
return {
1107+
target: methodName,
11071108
arguments: args,
11081109
invocationId: invocationId.toString(),
1109-
target: methodName,
11101110
type: MessageType.StreamInvocation,
11111111
};
11121112
}

0 commit comments

Comments
 (0)