diff --git a/lib/src/hub_connection.dart b/lib/src/hub_connection.dart index feeb667..95639d8 100644 --- a/lib/src/hub_connection.dart +++ b/lib/src/hub_connection.dart @@ -1090,7 +1090,8 @@ class HubConnection { } void _invokeClientMethod(InvocationMessage invocationMessage) { - final methods = _methods[invocationMessage.target!.toLowerCase()]; + final methods = + _methods[invocationMessage.target?.toLowerCase()] ?? _methods['*']; if (methods != null) { try { diff --git a/pubspec.yaml b/pubspec.yaml index 3720f86..f0bb1c6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,18 +1,18 @@ 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.1.2 +version: 1.0.9 homepage: https://github.com/jamiewest/signalr_core environment: - sdk: ^3.2.6 + sdk: '>=3.4.4 <4.0.0' 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