Skip to content

Commit

Permalink
Merge branch 'main' into ui-enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDegenDeveloper authored Nov 29, 2024
2 parents c1303d0 + ab96957 commit 2a18c17
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import useWebSocketHome from "@/hooks/websocket/useWebSocketHome";

export default function Home() {
// console.log("CHECK THIS LOG", process.env.NEXT_PUBLIC_VAULT_ADDRESSES);
// console.log("CHECK THIS LOG", process.env.NEXT_PUBLIC_WS_URL);

// console.log(vaultsRaw);
//
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/websocket/useWebSocketHome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const useWebSocketHome = ()=>{

useEffect(() => {
if (isLoaded) {
ws.current = new WebSocket("ws://localhost:8080/subscribeHome");
ws.current = new WebSocket(`${process.env.NEXT_PUBLIC_WS_URL}/subscribeHome`);

ws.current.onopen = () => {
console.log("WebSocket connection established");
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/websocket/useWebSocketVault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const useWebSocketVault = (conn: string, vaultAddress?: string) => {

useEffect(() => {
if (conn === "ws") {
ws.current = new WebSocket("ws://localhost:8080/subscribeVault");
ws.current = new WebSocket(`${process.env.NEXT_PUBLIC_WS_URL}/subscribeHome`);

ws.current.onopen = () => {
console.log("WebSocket connection established");
Expand Down

0 comments on commit 2a18c17

Please sign in to comment.