Skip to content

Commit 435fd7c

Browse files
dshukertjrbdlukaa
andauthored
Update packages/realtime_client/lib/src/realtime_channel.dart
Co-authored-by: Bruno D'Luka <45696119+bdlukaa@users.noreply.github.com>
1 parent e6526e0 commit 435fd7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/realtime_client/lib/src/realtime_channel.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,8 @@ class RealtimeChannel {
491491
if (!canPush && type == RealtimeListenTypes.broadcast) {
492492
final headers = <String, String>{
493493
'Content-Type': 'application/json',
494-
'apikey': socket.params['apikey'] ?? '',
494+
if (socket.params['apikey'] != null)
495+
'apikey': socket.params['apikey']!,
495496
...socket.headers,
496497
'Authorization':
497498
socket.accessToken != null ? 'Bearer ${socket.accessToken}' : '',

0 commit comments

Comments
 (0)