feature-gate Secure enum because its not appliable in the non-async mode
@@ -68,9 +68,10 @@ pub const TWITCH_WS_ADDRESS: &str = "ws://irc-ws.chat.twitch.tv:80";
/// The Twitch WebSocket address for TLS connections
pub const TWITCH_WS_ADDRESS_TLS: &str = "wss://irc-ws.chat.twitch.tv:443";
+cfg_async! {
/// Connection type
///
-/// Defaults to `Nope`
+ /// Defaults to `Nope` (no TLS)
#[derive(Debug, Copy, Clone, PartialEq)]
pub enum Secure {
/// Use TLS
@@ -94,6 +95,7 @@ impl Secure {
}
}
}
+}
cfg_async! {
/**
