show status of sockets independently
This commit is contained in:
parent
dd33ec59ad
commit
3c9192ab3a
1 changed files with 32 additions and 26 deletions
9
tank-frontend/src/statusTextForReadyState.tsx
Normal file
9
tank-frontend/src/statusTextForReadyState.tsx
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import {ReadyState} from 'react-use-websocket';
|
||||
|
||||
export const statusTextForReadyState = {
|
||||
[ReadyState.CONNECTING]: 'Connecting',
|
||||
[ReadyState.OPEN]: 'Open',
|
||||
[ReadyState.CLOSING]: 'Closing',
|
||||
[ReadyState.CLOSED]: 'Closed',
|
||||
[ReadyState.UNINSTANTIATED]: 'Uninstantiated',
|
||||
};
|
||||
Reference in a new issue