Files
rosetta 83f38dc63f 'init'
2026-01-30 05:01:05 +02:00

12 lines
291 B
TypeScript

import Packet from "@/app/providers/ProtocolProvider/protocol/packet";
import { useProtocol } from "./useProtocol";
export const useSender = () => {
const {protocol} = useProtocol();
const send = (packet: Packet) => {
protocol.sendPacket(packet);
}
return send;
}