Skip to content

Commit

Permalink
Added attachOnSubscribe option to ChannelOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Sep 16, 2024
1 parent e0e2317 commit 935ff90
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/src/main/java/io/ably/lib/types/ChannelOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ public class ChannelOptions {
*/
public boolean encrypted;

/**
* Determines whether calling @subscribe@ on a channel or presence object should trigger an implicit attach.
* Defaults to @true@.
* Spec: RTP6d, RTP6e, TB4
*/
public boolean attachOnSubscribe = true;

public boolean hasModes() {
return null != modes && 0 != modes.length;
}
Expand Down

0 comments on commit 935ff90

Please sign in to comment.