Class ConnectionOption

java.lang.Object
io.github.jtwitch.socket.connection.ConnectionOption

public class ConnectionOption extends Object
Describe options to create a socket connection through the twitch IRC socket.
  • Constructor Details

    • ConnectionOption

      public ConnectionOption(String botAccount, String token)
      The only constructor.
      Parameters:
      botAccount - the name of the bot account. for instance, if your bot account is nightbot, the botAccount is nightbot
      token - the connection token the you generate here
  • Method Details

    • secureConnection

      public void secureConnection()
      trigger the socket to connect to the SSL connection of twitch
    • getConnectionUrl

      public String getConnectionUrl()
      Returns:
      the formatted url connection
    • getUser

      public String getUser()
      Returns:
      userName credential
    • getToken

      public String getToken()
      Returns:
      the token to connection to the twitch IRC socket.