From 0f681ad67099d48e688d19ebf407b384d5e72212 Mon Sep 17 00:00:00 2001 From: holy frege Date: Mon, 18 Dec 2023 13:52:24 +0900 Subject: [PATCH] Fix argument type in onMessage function causing bug. original typdef expecting Map datastructure but can be string. --- lib/action_cable.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/action_cable.dart b/lib/action_cable.dart index 5556103..03db48b 100644 --- a/lib/action_cable.dart +++ b/lib/action_cable.dart @@ -149,7 +149,7 @@ class ActionCable { final channelId = parseChannelId(payload['identifier']); final onMessage = _onChannelMessageCallbacks[channelId]; if (onMessage != null) { - onMessage(payload['message']); + onMessage(payload); } }