TypingIndicatorService Service
File: src/services/TypingIndicatorService.ts
Overview
Exports
- TypingUser - interface export
- TypingContext - type export
- typingIndicatorService - const export
Classes
TypingIndicatorService
No description available.
Methods:
initializestartTypingstopTypingsetupContextcatchsubscribeToChannelcleanupContexthandlePresenceSyncDatehandlePresenceJoinhandlePresenceLeavenotifyCallbacksgetChannelNameswitchgetContextKeyisSameContextcleanup
Properties:
currentChannelcurrentContextcurrentUserIdtypingTimeoutisCurrentlyTypingTYPING_TIMEOUT_MScontexttypingUserschangetypingCallbacksIDavailableearlyauthStoreuserTypingIndicatorServicei30breakcallbackcontextKeyinitializedinitializationuserscallbackseventittimeoutpresenceuserDatadisplayNameusernameuser_idtypingtyping_atdisplay_nametruenullfalseloadsreusechannelNamelogicyetMAX_RETRIESRETRY_DELAY_MSSUBSCRIBE_TIMEOUT_MSattemptsubscribedoutresolvedsubscriptionchannelstatusfailedpresenceStatetypingSetstatetypingAtnowtimeSinceTypingtypingArraynewPresencesleftPresencescomparisonsameblogout
Interfaces
TypingUser
No description available.
typescript
interface TypingUser {
user_id: string
display_name?: string
username?: string
typing_at: string
}Type Definitions
TypingContext
No description available.
typescript
export type TypingContext =
| { type: 'channel';Constants
MAX_RETRIES
No description available.
typescript
const MAX_RETRIES = 5RETRY_DELAY_MS
No description available.
typescript
const RETRY_DELAY_MS = 500SUBSCRIBE_TIMEOUT_MS
No description available.
typescript
const SUBSCRIBE_TIMEOUT_MS = 3000Source Code Insights
File Size: 15481 characters Lines of Code: 479 Imports: 5
Usage Example
typescript
import { TypingUser, TypingContext, typingIndicatorService } from '@/services/TypingIndicatorService'
// Example usage
// Use the exported functionalityThis documentation was automatically generated from the source code.
