React Use Websocket Typescript Enum Get Key