Variables
Const ANONYMOUS_USERNAME
ANONYMOUS_USERNAME: "justinfan" = "justinfan"
Defined in src/Client/client-constants.ts:34
Defined in src/Chat/chat-constants.ts:34
Const ANONYMOUS_USERNAME_RE
ANONYMOUS_USERNAME_RE: RegExp = new RegExp(`^${ANONYMOUS_USERNAME}(\\d+)$`)
Defined in src/Client/client-constants.ts:35
Defined in src/Chat/chat-constants.ts:35
Const CHAT_SERVER
CHAT_SERVER: "irc-ws.chat.twitch.tv" = "irc-ws.chat.twitch.tv"
Defined in src/Client/client-constants.ts:1
Defined in src/Chat/chat-constants.ts:1
Const CHAT_SERVER_PORT
CHAT_SERVER_PORT: 6667 = 6667
Defined in src/Client/client-constants.ts:2
Defined in src/Chat/chat-constants.ts:2
Const CHAT_SERVER_SSL_PORT
CHAT_SERVER_SSL_PORT: 443 = 443
Defined in src/Client/client-constants.ts:3
Defined in src/Chat/chat-constants.ts:3
Const CLIENT_PRIORITY
CLIENT_PRIORITY: 100 = 100
Defined in src/Client/client-constants.ts:12
Defined in src/Chat/chat-constants.ts:12
Const COMMAND_TIMEOUT
COMMAND_TIMEOUT: 1000 = 1000
Defined in src/Client/client-constants.ts:10
Defined in src/Chat/chat-constants.ts:10
Const CONNECT
CONNECT: unique symbol = Symbol('connect')
Defined in src/Chat/chat-constants.ts:37
Const CONNECTED
CONNECTED: unique symbol = Symbol('connected')
Defined in src/Chat/chat-constants.ts:38
Const CONNECTION_TIMEOUT
CONNECTION_TIMEOUT: 5000 = 5000
Defined in src/Client/client-constants.ts:5
Defined in src/Chat/chat-constants.ts:5
Const DISCONNECT
DISCONNECT: unique symbol = Symbol('disconnect')
Defined in src/Chat/chat-constants.ts:39
Const DISCONNECTED
DISCONNECTED: unique symbol = Symbol('disconnected')
Defined in src/Chat/chat-constants.ts:40
Const ERROR_COMMAND_TIMED_OUT
ERROR_COMMAND_TIMED_OUT: "ERROR: command timed out" = "ERROR: command timed out"
Defined in src/Client/client-constants.ts:24
Defined in src/Chat/chat-constants.ts:24
Const ERROR_COMMAND_UNRECOGNIZED
ERROR_COMMAND_UNRECOGNIZED: "ERROR: command unrecognized" = "ERROR: command unrecognized"
Defined in src/Client/client-constants.ts:25
Defined in src/Chat/chat-constants.ts:25
Const ERROR_CONNECTION_IN_PROGRESS
ERROR_CONNECTION_IN_PROGRESS: "ERROR: connection in progress" = "ERROR: connection in progress"
Defined in src/Client/client-constants.ts:21
Defined in src/Chat/chat-constants.ts:21
Const ERROR_CONNECT_TIMED_OUT
ERROR_CONNECT_TIMED_OUT: "ERROR: connect timed out" = "ERROR: connect timed out"
Defined in src/Client/client-constants.ts:20
Defined in src/Chat/chat-constants.ts:20
Const ERROR_JOIN_TIMED_OUT
ERROR_JOIN_TIMED_OUT: "ERROR: join timed out" = "ERROR: join timed out"
Defined in src/Client/client-constants.ts:22
Defined in src/Chat/chat-constants.ts:22
Const ERROR_PART_TIMED_OUT
ERROR_PART_TIMED_OUT: "ERROR: part timed out" = "ERROR: part timed out"
Defined in src/Client/client-constants.ts:26
Defined in src/Chat/chat-constants.ts:26
Const ERROR_SAY_TIMED_OUT
ERROR_SAY_TIMED_OUT: "ERROR: say timed out" = "ERROR: say timed out"
Defined in src/Client/client-constants.ts:23
Defined in src/Chat/chat-constants.ts:23
Const JOIN_TIMEOUT
JOIN_TIMEOUT: 1000 = 1000
Defined in src/Client/client-constants.ts:9
Defined in src/Chat/chat-constants.ts:9
Const KEEP_ALIVE_PING_TIMEOUT
KEEP_ALIVE_PING_TIMEOUT: 150000 = 150000
Defined in src/Client/client-constants.ts:6
Defined in src/Chat/chat-constants.ts:6
Const KEEP_ALIVE_RECONNECT_TIMEOUT
KEEP_ALIVE_RECONNECT_TIMEOUT: 200000 = 200000
Defined in src/Client/client-constants.ts:7
Defined in src/Chat/chat-constants.ts:7
Const KnownNoticeMessageIdsUpperCase
KnownNoticeMessageIdsUpperCase: Record < "ALREADY_BANNED" | "ALREADY_EMOTE_ONLY_OFF" | "ALREADY_EMOTE_ONLY_ON" | "ALREADY_R9K_OFF" | "ALREADY_R9K_ON" | "ALREADY_SUBS_OFF" | "ALREADY_SUBS_ON" | "BAD_HOST_HOSTING" | "BAD_MOD_MOD" | "BAN_SUCCESS" | "BAD_UNBAN_NO_BAN" | "COLOR_CHANGED" | "CMDS_AVAILABLE" | "COMMERCIAL_SUCCESS" | "EMOTE_ONLY_OFF" | "EMOTE_ONLY_ON" | "FOLLOWERS_OFF" | "FOLLOWERS_ON" | "FOLLOWERS_ONZERO" | "HOST_OFF" | "HOST_ON" | "HOSTS_REMAINING" | "MSG_CHANNEL_SUSPENDED" | "MOD_SUCCESS" | "NOT_HOSTING" | "R9K_OFF" | "R9K_ON" | "ROOM_MODS" | "SLOW_OFF" | "SLOW_ON" | "SUBS_OFF" | "SUBS_ON" | "TIMEOUT_SUCCESS" | "UNBAN_SUCCESS" | "UNMOD_SUCCESS" | "UNRAID_SUCCESS" | "UNRECOGNIZED_CMD" , string > = Object.entries(KnownNoticeMessageIds,).reduce((uppercase, [key, value]) => ({ ...uppercase, [key]: value.toUpperCase() }),{} as Record<keyof typeof KnownNoticeMessageIds, string>,)
Defined in src/twitch.ts:214
Const MESSAGE_PARAMETER_PREFIX
MESSAGE_PARAMETER_PREFIX: "msgParam" = "msgParam"
Defined in src/Client/client-constants.ts:28
Defined in src/Chat/chat-constants.ts:28
Const MESSAGE_PARAMETER_PREFIX_RE
MESSAGE_PARAMETER_PREFIX_RE: RegExp = new RegExp(`^${MESSAGE_PARAMETER_PREFIX}(\\w+)`,)
Defined in src/Client/client-constants.ts:29
Defined in src/Chat/chat-constants.ts:29
Const NoticeEvents
Notice
Events: DistributeKeys < KnownNoticeMessageIds > = Object.keys(KnownNoticeMessageIds).reduce((events, event) => ({...events,[event]: event,[`${Commands.NOTICE}/${event.toUpperCase()}`]: event,}),{} as DistributeKeys<typeof KnownNoticeMessageIds>,)
Defined in src/twitch.ts:221
Const PRIVATE_MESSAGE_HOSTED_RE
PRIVATE_MESSAGE_HOSTED_RE: RegExp = /:.+@jtv\.tmi\.twitch\.tv PRIVMSG #?(\w+) :(\w+) is now (?:(auto) )?hosting[A-z ]+(\d+)?/
Defined in src/Client/client-constants.ts:32
Defined in src/Chat/chat-constants.ts:32
Const RATE_LIMIT_KNOWN_BOT
RATE_LIMIT_KNOWN_BOT: 50 = 50
Defined in src/Client/client-constants.ts:17
Defined in src/Chat/chat-constants.ts:17
Const RATE_LIMIT_MODERATOR
RATE_LIMIT_MODERATOR: 100 = 100
Defined in src/Client/client-constants.ts:16
Defined in src/Chat/chat-constants.ts:16
Const RATE_LIMIT_USER
RATE_LIMIT_USER: 20 = 20
Defined in src/Client/client-constants.ts:15
Defined in src/Chat/chat-constants.ts:15
Const RATE_LIMIT_VERIFIED_BOT
RATE_LIMIT_VERIFIED_BOT: 7500 = 7500
Defined in src/Client/client-constants.ts:18
Defined in src/Chat/chat-constants.ts:18
Const RECONNECT
RECONNECT: unique symbol = Symbol('reconnect')
Defined in src/Chat/chat-constants.ts:41
Const UserNoticeEvents
User
NoticeEvents: DistributeKeys < KnownUserNoticeMessageIds > = Object.keys(KnownUserNoticeMessageIds).reduce((events, event) => ({...events,[event]: event,[`${Commands.USER_NOTICE}/${event}`]: event,}),{} as DistributeKeys<typeof KnownUserNoticeMessageIds>,)
Defined in src/twitch.ts:252
Const userNotice
userNotice: userState = userState
Defined in src/Chat/utils/parsers/chat-parser-tags.ts:99
Validate response
https://dev.twitch.tv/docs/authentication#validating-requests