mirror of
https://github.com/MatrixSeven/file-transfer-go.git
synced 2026-05-22 05:47:28 +08:00
feat: ws实现
This commit is contained in:
@@ -4,7 +4,7 @@ import { ConnectionStatus } from '@/components/ConnectionStatus';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { useToast } from '@/components/ui/toast-simple';
|
||||
import { useSharedWebRTCManager } from '@/hooks/connection';
|
||||
import { useConnectManager } from '@/hooks/connection';
|
||||
import { useFileTransferBusiness } from '@/hooks/file-transfer';
|
||||
import { useTextTransferBusiness } from '@/hooks/text-transfer';
|
||||
import { Download, Image, MessageSquare } from 'lucide-react';
|
||||
@@ -37,7 +37,7 @@ export const WebRTCTextReceiver: React.FC<WebRTCTextReceiverProps> = ({
|
||||
const hasTriedAutoConnect = useRef(false);
|
||||
|
||||
// 创建共享连接
|
||||
const connection = useSharedWebRTCManager();
|
||||
const connection = useConnectManager();
|
||||
|
||||
const {getConnectState} = connection;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user