mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 04:43:35 +00:00
feat: implement naive client ping
This commit is contained in:
committed by
Carlos Valente
parent
d87542dcf7
commit
8dd448db44
@@ -230,3 +230,11 @@ export const useTimelineStatus = () => {
|
||||
|
||||
return useRuntimeStore(featureSelector);
|
||||
};
|
||||
|
||||
export const usePing = () => {
|
||||
const featureSelector = (state: RuntimeStore) => ({
|
||||
ping: state.ping,
|
||||
});
|
||||
|
||||
return useRuntimeStore(featureSelector);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user