From 58e303690ec51635ae2ff297a1b450fae6756192 Mon Sep 17 00:00:00 2001 From: aktxyz Date: Mon, 6 Mar 2023 16:47:03 -0600 Subject: [PATCH 1/5] suggestion for wildcard message handler Not sure if there is already a way to do this? this change lets me setup an 'on' handler for otherwise unmatched messages. --- lib/src/hub_connection.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/hub_connection.dart b/lib/src/hub_connection.dart index 94c777d..a4c1a8b 100644 --- a/lib/src/hub_connection.dart +++ b/lib/src/hub_connection.dart @@ -987,7 +987,7 @@ class HubConnection { } void _invokeClientMethod(InvocationMessage invocationMessage) { - final methods = _methods[invocationMessage.target.toLowerCase()]; + final methods = _methods[invocationMessage.target.toLowerCase()] ?? _methods['*']; if (methods != null) { try { From 194fc04d460d207e79190b99b29baa6e63d06850 Mon Sep 17 00:00:00 2001 From: bennibau Date: Thu, 19 Sep 2024 14:37:18 +0200 Subject: [PATCH 2/5] Update pubspec.yaml --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 7546399..e27dc8e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.8 homepage: https://github.com/jamiewest/signalr_core environment: - sdk: '>=2.6.0 <3.0.0' + sdk: '>=3.4.4 <4.0.0' dependencies: http: ^0.12.1 From 386000c335f4fe1b5eb3687f3a3cd3383b383be5 Mon Sep 17 00:00:00 2001 From: Benjamin Baumann Date: Thu, 19 Sep 2024 14:41:46 +0200 Subject: [PATCH 3/5] updated dependencies --- pubspec.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 3720f86..cb771b3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,12 +7,12 @@ environment: sdk: ^3.2.6 dependencies: - http: ^1.2.0 + http: ^1.2.2 logging: ^1.2.0 - web_socket_channel: ^2.4.3 + web_socket_channel: ^3.0.1 sse_channel: ^0.1.1 equatable: ^2.0.5 dev_dependencies: - lints: ^3.0.0 - test: ^1.24.4 + lints: ^4.0.0 + test: ^1.25.8 From dd205b0bb74dfe4462374cccbacf910ff82116fe Mon Sep 17 00:00:00 2001 From: Benjamin Baumann Date: Thu, 19 Sep 2024 14:45:21 +0200 Subject: [PATCH 4/5] updated depenendecies --- pubspec.yaml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index e27dc8e..9cadb31 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,20 +1,21 @@ name: signalr_core description: ASP.NET Core SignalR Client written for Dart that is platform-independent, and can be used on both the command-line and the browser. -version: 1.0.8 +version: 1.0.9 homepage: https://github.com/jamiewest/signalr_core environment: sdk: '>=3.4.4 <4.0.0' dependencies: - http: ^0.12.1 - logging: ^0.11.4 - meta: ^1.1.8 - tuple: ^1.0.3 - web_socket_channel: ^1.1.0 - sse_client: ^0.0.3 - equatable: ^1.2.3 + http: ^1.2.2 + logging: ^1.2.0 + web_socket_channel: ^3.0.1 + sse_channel: ^0.1.1 + equatable: ^2.0.5 + meta: ^1.15.0 + tuple: ^2.0.2 dev_dependencies: - pedantic: ^1.8.0 - test: ^1.2.0 + lints: ^4.0.0 + test: ^1.25.8 + From 618f986690cfb911b3bcad3ad35de21566438e0c Mon Sep 17 00:00:00 2001 From: Benjamin Baumann Date: Thu, 19 Sep 2024 15:04:58 +0200 Subject: [PATCH 5/5] changed deps --- pubspec.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 8f83146..f0bb1c6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,8 +12,6 @@ dependencies: web_socket_channel: ^3.0.1 sse_channel: ^0.1.1 equatable: ^2.0.5 - meta: ^1.15.0 - tuple: ^2.0.2 dev_dependencies: lints: ^4.0.0