UNPKG

stream-chat-react-native-core

Version:

The official React Native and Expo components for Stream Chat, a service for building chat applications

12 lines (10 loc) 282 B
import { fromPartial } from '@total-typescript/shoehorn'; import type { Event, StreamChat } from 'stream-chat'; export default (client: StreamChat, online = true) => { client.dispatchEvent( fromPartial<Event>({ online, type: 'connection.changed', }), ); };