chore: docs

This commit is contained in:
karishmas6
2024-06-21 22:19:16 +05:30
parent dbb5f858bc
commit 4227366f2f

View File

@@ -24,6 +24,7 @@ export const SocketProvider = ({ children }: { children: JSX.Element }) => {
const [id, setActiveId] = useState<string>(socketStore.id);
const setId = useCallback((id: string) => {
// the socket client connection is recomputed whenever id changes -> the new browser has been initialized
const socket =
io(`${SERVER_ENDPOINT}/${id}`, {
transports: ["websocket"],