mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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:
parent
8e8bbe84f3
commit
030675812e
@ -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";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user