File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
packages/core/realtime-js/src Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,7 @@ export default class RealtimeChannel {
114
114
{ }
115
115
)
116
116
117
- if ( Object . keys ( configs ) . length ) {
118
- this . updateJoinPayload ( { configs } )
119
- }
117
+ this . updateJoinPayload ( { configs } )
120
118
121
119
this . joinedOnce = true
122
120
this . rejoin ( timeout )
Original file line number Diff line number Diff line change @@ -261,17 +261,9 @@ export default class RealtimeClient {
261
261
)
262
262
}
263
263
264
- channel ( topic : string , chanParams : ChannelParams = { } ) : RealtimeChannel {
265
- const { selfBroadcast, ...params } = chanParams
266
-
267
- if ( selfBroadcast ) {
268
- params . self_broadcast = selfBroadcast
269
- }
270
-
264
+ channel ( topic : string , params : ChannelParams = { } ) : RealtimeChannel {
271
265
const chan = new RealtimeChannel ( topic , params , this )
272
-
273
266
this . channels . push ( chan )
274
-
275
267
return chan
276
268
}
277
269
You can’t perform that action at this time.
0 commit comments