Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nikasakandelidze committed Sep 28, 2023
1 parent 0c08049 commit 9201f32
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions role-ai-client/k8s/client/client-service.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: roles-ai-client-service
name: roles-ai-client-service-lb
spec:
selector:
app: roles-ai-client
ports:
- protocol: TCP
port: 80
targetPort: 80
type: NodePort
type: LoadBalancer
3 changes: 1 addition & 2 deletions role-ai-client/src/common/socket.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Socket, io } from "socket.io-client";

const URL = `${process.env.REACT_APP_API_PROTOCOL}://${process.env.REACT_APP_API_HOST}:${process.env.REACT_APP_API_PORT}`;
import { URL } from "./constants";

export type SocketListenerData = {
topic: string;
Expand Down
1 change: 1 addition & 0 deletions role-ai-client/src/state/sessions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
import { ActionProgress, UserState, userStore } from "../user";
import axios, { AxiosError } from "axios";
import { SocketService } from "../../common/socket";
import { URL } from "../../common/constants";

export const USER_MESSAGE_TOPIC_INPUT = "CHAT_INPUT";
export const BOT_MESSAGE_TOPIC_OUTPUT = "CHAT_OUTPUT";
Expand Down
1 change: 1 addition & 0 deletions role-ai-client/src/state/user/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
import axios, { AxiosError } from "axios";
import { action, makeObservable, observable, runInAction } from "mobx";
import { USER_LOCAL_STORAGE_KEY } from "../../common/constants";
import { URL } from "../../common/constants";

export type ActionProgress = {
state: ProgressState;
Expand Down

0 comments on commit 9201f32

Please sign in to comment.