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.
This commit is contained in:
Dan Albert 2022-03-01 21:25:32 -08:00
parent 8e8bbe84f3
commit 030675812e

View File

@ -1,3 +1,5 @@
// Based on https://thenable.io/building-a-use-socket-hook-in-react.
import { ReactChild, createContext, useEffect, useState } from "react"; import { ReactChild, createContext, useEffect, useState } from "react";
import { WEBSOCKET_URL } from "../../api/backend"; import { WEBSOCKET_URL } from "../../api/backend";