Skip to content

Commit

Permalink
Update packages/realtime_client/lib/src/realtime_channel.dart
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno D'Luka <45696119+bdlukaa@users.noreply.github.com>
  • Loading branch information
dshukertjr and bdlukaa authored Jul 12, 2024
1 parent e6526e0 commit 435fd7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/realtime_client/lib/src/realtime_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ class RealtimeChannel {
if (!canPush && type == RealtimeListenTypes.broadcast) {
final headers = <String, String>{
'Content-Type': 'application/json',
'apikey': socket.params['apikey'] ?? '',
if (socket.params['apikey'] != null)
'apikey': socket.params['apikey']!,
...socket.headers,
'Authorization':
socket.accessToken != null ? 'Bearer ${socket.accessToken}' : '',
Expand Down

0 comments on commit 435fd7c

Please sign in to comment.