From 030675812e41b1aa796cc003df878ffd6754034a Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 1 Mar 2022 21:25:32 -0800 Subject: [PATCH] Cite the websocket tutorial I used for reference. This was tricky to work out and most of the tutorials were bad. This one was good, so keep a link around in case we need the reference again. --- client/src/components/socketprovider/socketprovider.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/components/socketprovider/socketprovider.tsx b/client/src/components/socketprovider/socketprovider.tsx index 9b5e48b3..43c9e9e4 100644 --- a/client/src/components/socketprovider/socketprovider.tsx +++ b/client/src/components/socketprovider/socketprovider.tsx @@ -1,3 +1,5 @@ +// Based on https://thenable.io/building-a-use-socket-hook-in-react. + import { ReactChild, createContext, useEffect, useState } from "react"; import { WEBSOCKET_URL } from "../../api/backend";