mirror of https://github.com/buster-so/buster.git
update to use web socket url
This commit is contained in:
parent
4271de634b
commit
fe98e75f7e
|
@ -3,7 +3,7 @@
|
||||||
import { useMemoizedFn } from 'ahooks';
|
import { useMemoizedFn } from 'ahooks';
|
||||||
import React, { useMemo, useRef } from 'react';
|
import React, { useMemo, useRef } from 'react';
|
||||||
import { useBusterNotifications } from '../BusterNotifications/BusterNotifications';
|
import { useBusterNotifications } from '../BusterNotifications/BusterNotifications';
|
||||||
import {
|
import type {
|
||||||
BusterSocketRequest,
|
BusterSocketRequest,
|
||||||
BusterSocketResponse,
|
BusterSocketResponse,
|
||||||
BusterSocketResponseRoute
|
BusterSocketResponseRoute
|
||||||
|
@ -18,7 +18,7 @@ import {
|
||||||
} from '@fluentui/react-context-selector';
|
} from '@fluentui/react-context-selector';
|
||||||
import { SupabaseContextReturnType } from '../Supabase';
|
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 = {
|
export type BusterOnCallback = {
|
||||||
callback: BusterSocketResponse['callback'];
|
callback: BusterSocketResponse['callback'];
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use client';
|
||||||
|
|
||||||
import { useMemoizedFn, useMount, useNetwork, useThrottleFn } from 'ahooks';
|
import { useMemoizedFn, useMount, useNetwork, useThrottleFn } from 'ahooks';
|
||||||
import { useEffect, useRef, useState } from 'react';
|
import { useEffect, useRef, useState } from 'react';
|
||||||
import { ReadyState } from './useBusterWebSocket';
|
import { ReadyState } from './useBusterWebSocket';
|
||||||
|
|
Loading…
Reference in New Issue