@codingfactory/messenger-client
v0.2.23
Published
Shared messaging frontend state, API helpers, and realtime composables.
Readme
messenger-client
Shared frontend messaging state, API helpers, and realtime composables extracted
from blowglass.
Status
This package is in copy-first extraction mode. The goal is to preserve proven behavior while moving generic messaging code into a standalone package.
Configuration
Consumer apps should configure the package runtime once during app bootstrap:
import { configureMessengerClient } from '@codingfactory/messenger-client'
configureMessengerClient({
apiClient,
authStore: useAuthStore,
mediaApi,
createLogger,
playMessageNotification,
echo: {
initializedEvent: 'blowglass:echo-initialized',
getEcho,
onConnectionStatusChange,
subscribeToPresenceStatus,
unsubscribeFromPresenceStatus,
subscribeToConversation,
unsubscribeFromConversation,
},
})The extracted store and composables can then be imported from the package instead of staying embedded inside the consumer app.
