pub fn join(&mut self) -> Result<(), MixerError> {
		// CLEANUP: Do we _really_ need to clone all of those? Is there a better way
		//          to satisfy the borrow checker?
		let channel_id = self.channel_data.id.clone();
		let user_id = self.me.channel.user_id.clone();
		let authkey = self.chat.authkey.clone();

		let packet = AuthenticationPacket {
			id: self.packet_id,
			packet_type: PacketType::Method,
			method: MethodType::Auth,
			arguments: json!([ channel_id, user_id, authkey ])
		};

		let message = OwnedMessage::Text(serde_json::to_string(&packet).unwrap());
		self.send_packet(message)?;

		Ok(())
	}
/// join the current connection to a given channel.

join the current connection to a given channel.
join the current connection to a given channel .
pub fn join(&mut self) -> Result<(), MixerError> {
		// CLEANUP: Do we _really_ need to clone all of those? Is there a better way
		//          to satisfy the borrow checker?
		let channel_id = self.channel_data.id.clone();
		let user_id = self.me.channel.user_id.clone();
		let authkey = self.chat.authkey.clone();
		let packet = AuthenticationPacket {
			id: self.packet_id,
			packet_type: PacketType::Method,
			method: MethodType::Auth,
			arguments: json!([ channel_id, user_id, authkey ])
		};
		let message = OwnedMessage::Text(serde_json::to_string(&packet).unwrap());
		self.send_packet(message)?;
		Ok(())
	}
pub fn join ( & mut self ) -> Result < ( ) , MixerError > { // CLEANUP: Do we _really_ need to clone all of those? Is there a better way
 //          to satisfy the borrow checker?
 let channel_id = self . channel_data . id . clone ( ) ; let user_id = self . me . channel . user_id . clone ( ) ; let authkey = self . chat . authkey . clone ( ) ; let packet = AuthenticationPacket { id : self . packet_id , packet_type : PacketType :: Method , method : MethodType :: Auth , arguments : json ! ( [ channel_id user_id authkey ] ) } ; let message = OwnedMessage :: Text ( serde_json :: to_string ( & packet ) . unwrap ( ) ) ; self . send_packet ( message ) ? ; Ok ( ( ) ) }
join the current connection to a given channel.
join the current connection to a given channel .
&mut self
&mut self