diff --git a/k8s/chatemo-backend-config.yml b/k8s/chatemo-backend-config.yml new file mode 100644 index 0000000..5b01921 --- /dev/null +++ b/k8s/chatemo-backend-config.yml @@ -0,0 +1,8 @@ +apiVersion: cloud.google.com/v1 +kind: BackendConfig +metadata: + name: chatemo-backend-config +spec: + timeoutSec: 3600 + connectionDraining: + drainingTimeoutSec: 3600 diff --git a/k8s/chatemo-service.yml b/k8s/chatemo-service.yml index f701f41..6573623 100644 --- a/k8s/chatemo-service.yml +++ b/k8s/chatemo-service.yml @@ -2,6 +2,8 @@ apiVersion: v1 kind: Service metadata: name: chatemo + annotations: + cloud.google.com/backend-config: '{"default": "chatemo-backend-config"}' spec: type: NodePort selector: diff --git a/k8s/certificate.yml b/k8s/tmp/certificate.yml similarity index 100% rename from k8s/certificate.yml rename to k8s/tmp/certificate.yml diff --git a/k8s/cluster-issuer.yml b/k8s/tmp/cluster-issuer.yml similarity index 100% rename from k8s/cluster-issuer.yml rename to k8s/tmp/cluster-issuer.yml diff --git a/k8s/ingress.yml b/k8s/tmp/ingress.yml similarity index 100% rename from k8s/ingress.yml rename to k8s/tmp/ingress.yml diff --git a/src/components/HoverTooltip.tsx b/src/components/HoverTooltip.tsx index 68fc668..d9baef6 100644 --- a/src/components/HoverTooltip.tsx +++ b/src/components/HoverTooltip.tsx @@ -14,7 +14,7 @@ interface Props { const HoverTooltip: React.FC = ({ content, children }) => { const [isHover, setIsHover] = useState(false); - const [debouncedIsHover] = useDebounce(isHover, 500); + const [debouncedIsHover] = useDebounce(isHover, 300); return ( @@ -23,6 +23,7 @@ const HoverTooltip: React.FC = ({ content, children }) => {
setIsHover(true)} onMouseLeave={() => setIsHover(false)} + onClick={() => setIsHover(false)} > {children}
diff --git a/src/store/socketStore.ts b/src/store/socketStore.ts index 18a3ae7..8ddb3d5 100644 --- a/src/store/socketStore.ts +++ b/src/store/socketStore.ts @@ -17,6 +17,8 @@ const useSocketStore = create((set) => ({ connect: (url: string) => { const socket = io(url, { path: ApiUrl.SOCKET, + transports: ['polling'], + timeout: 3600, }); socket.on('connect', () => {