Skip to content

Commit 10da8f5

Browse files
committed
Add usewebsocket, basic states for closed channel, open channel, and transition states
1 parent e6a169e commit 10da8f5

File tree

7 files changed

+2371
-1911
lines changed

7 files changed

+2371
-1911
lines changed

apps/frontend/.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# URL endpoints of the services
22
NEXT_PUBLIC_QUESTION_SERVICE_URL="http://localhost:8080/"
3-
NEXT_PUBLIC_USER_SERVICE_URL="http://localhost:3001/"
3+
NEXT_PUBLIC_USER_SERVICE_URL="http://localhost:3001/"
4+
NEXT_PUBLIC_MATCHING_SERVICE_URL="wss://localhost:8081"

apps/frontend/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Then, follow the `.env.example` file and create a `.env` file in the current dir
2525
```bash
2626
NEXT_PUBLIC_QUESTION_SERVICE_URL="http://localhost:8080"
2727
NEXT_PUBLIC_USER_SERVICE_URL="http://localhost:3001/"
28+
NEXT_PUBLIC_MATCHING_SERVICE_URL="wss://localhost:8081"
2829
```
2930

3031
First, run the development server:

apps/frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"next": "14.2.13",
1717
"react": "^18.2.0",
1818
"react-dom": "^18.2.0",
19+
"react-use-websocket": "^4.9.0",
1920
"sass": "^1.79.2"
2021
},
2122
"devDependencies": {

0 commit comments

Comments
 (0)