MCPcopy Create free account
hub / github.com/GRVYDEV/Project-Lightspeed / useSocket

Function useSocket

frontend/src/context/SocketContext.jsx:120–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118};
119
120export const useSocket = () => {
121 const context = useContext(SocketContext);
122
123 if (!context) {
124 throw new Error("useSocket must be nested in SocketProvider");
125 }
126
127 return context;
128};
129
130export default SocketProvider;
131

Callers 1

AppFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected