diff --git a/packages/realtime_client/lib/src/realtime_channel.dart b/packages/realtime_client/lib/src/realtime_channel.dart index bc953b2d..c7cd8568 100644 --- a/packages/realtime_client/lib/src/realtime_channel.dart +++ b/packages/realtime_client/lib/src/realtime_channel.dart @@ -491,8 +491,7 @@ class RealtimeChannel { if (!canPush && type == RealtimeListenTypes.broadcast) { final headers = { 'Content-Type': 'application/json', - if (socket.params['apikey'] != null) - 'apikey': socket.params['apikey']!, + if (socket.params['apikey'] != null) 'apikey': socket.params['apikey']!, ...socket.headers, if (socket.accessToken != null) 'Authorization': 'Bearer ${socket.accessToken}',