mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +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;
|
|
};
|