Class ConnectionOption
java.lang.Object
io.github.jtwitch.socket.connection.ConnectionOption
Describe options to create a socket connection through the twitch IRC socket.
-
Constructor Details
-
ConnectionOption
The only constructor.- Parameters:
botAccount
- the name of the bot account. for instance, if your bot account isnightbot
, the botAccount isnightbot
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
- Returns:
- the formatted url connection
-
getUser
- Returns:
- userName credential
-
getToken
- Returns:
- the token to connection to the twitch IRC socket.
-