채널 참여 / 나가기
1. 채널에 참여하기
채널에 참여합니다.
[[TalkPlus sharedInstance] joinChannel:channelId 
    success:^(TPChannel *tpChannel) {
    // SUCCESS
} failure:^(int errorCode, NSError *error) {
    // FAILURE
}];TalkPlus.sharedInstance()?.joinChannel(channelId,
                                     success: { tpChannel in
  // SUCCESS
}, failure: { (errorCode, error) in
  // FAILURE
})2. InvitationOnly 채널에 참여하기
초대 전용 채널에 참여합니다.
[[TalkPlus sharedInstance] joinChannel:channelId 
    invitationCode:invitationCode 
    success:^(TPChannel *tpChannel) {
    // SUCCESS
} failure:^(int errorCode, NSError *error) {
    // FAILURE
}];TalkPlus.sharedInstance()?.joinChannel(channelId,
  invitationCode:invitationCode,
  success: { tpChannel in
  // SUCCESS
}, failure: { (errorCode, error) in
  // FAILURE
})3. 채널 나가기
채널에서 나갑니다.
[[TalkPlus sharedInstance] leaveChannel:channel 
    deleteChannelIfEmpty:YES 
    success:^{
    // SUCCESS
} failure:^(int errorCode, NSError *error) {
    // FAILURE
}];TalkPlus.sharedInstance()?.leave(channel,
  deleteChannelIfEmpty: true,
  success: { 
  // SUCCESS
}, failure: { (errorCode, error) in
  // FAILURE
})Last updated