mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
9 lines
212 B
TypeScript
9 lines
212 B
TypeScript
import { SocketContext } from "../components/socketprovider/socketprovider";
|
|
import { useContext } from "react";
|
|
|
|
export const useSocket = () => {
|
|
const socket = useContext(SocketContext);
|
|
|
|
return socket;
|
|
};
|