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 435fd7c commit e2e551c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/realtime_client/lib/src/realtime_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,8 @@ class RealtimeChannel {
if (socket.params['apikey'] != null)
'apikey': socket.params['apikey']!,
...socket.headers,
'Authorization':
socket.accessToken != null ? 'Bearer ${socket.accessToken}' : '',
if (socket.accessToken != null)
'Authorization': 'Bearer ${socket.accessToken}',
};
final body = {
'messages': [
Expand Down

0 comments on commit e2e551c

Please sign in to comment.