The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/components/providers/ConnectionStatusProvider.mo...

24 lines
432 B

import React from 'react';
import { ConnectionStatusContext } from './ConnectionStatusProvider';
export function ConnectionStatusProvider({
children,
connected = false,
status,
retryTime,
retryCount = 3,
reconnect = () => {},
}) {
return <ConnectionStatusContext.Provider value={{
status: {
connected,
retryCount,
retryTime,
status,
},
reconnect,
}}>
{children}
</ConnectionStatusContext.Provider>;
}