update to use web socket url

This commit is contained in:
Nate Kelley 2025-03-04 10:30:54 -07:00
parent 4271de634b
commit fe98e75f7e
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,7 @@
import { useMemoizedFn } from 'ahooks';
import React, { useMemo, useRef } from 'react';
import { useBusterNotifications } from '../BusterNotifications/BusterNotifications';
import {
import type {
BusterSocketRequest,
BusterSocketResponse,
BusterSocketResponseRoute
@ -18,7 +18,7 @@ import {
} from '@fluentui/react-context-selector';
import { SupabaseContextReturnType } from '../Supabase';
const BUSTER_WS_URL = `${process.env.NEXT_PUBLIC_API_URL}/api/v1/ws`;
const BUSTER_WS_URL = `${process.env.NEXT_PUBLIC_WEB_SOCKET_URL}/api/v1/ws`;
export type BusterOnCallback = {
callback: BusterSocketResponse['callback'];

View File

@ -1,3 +1,5 @@
'use client';
import { useMemoizedFn, useMount, useNetwork, useThrottleFn } from 'ahooks';
import { useEffect, useRef, useState } from 'react';
import { ReadyState } from './useBusterWebSocket';