react-use-websocket
React Hook for WebSocket communication
File Explorer
Download Latest Version (.zip)- configJSDom.ts
- index.d.ts
- attach-listener.test.ts
- attach-listener.ts
- attach-shared-listeners.test.ts
- attach-shared-listeners.ts
- constants.ts
- create-or-join.test.ts
- create-or-join.ts
- get-url.test.ts
- get-url.ts
- globals.test.ts
- globals.ts
- heartbeat.test.ts
- heartbeat.ts
- manage-subscribers.test.ts
- manage-subscribers.ts
- proxy.test.ts
- proxy.ts
- socket-io.test.ts
- socket-io.ts
- types.ts
- use-event-source.test.ts
- use-event-source.ts
- use-socket-io.ts
- use-websocket.test.ts
- use-websocket.ts
- util.ts
- index.ts
- .gitignore
- .yarnrc.yml
- LICENSE
- package.json
- README.md
- tsconfig.json
- yarn.lock
# Installation Guide
1. Get the code
git clone https://github.com/robtaussig/react-use-websocket
Downloads the entire project code from GitHub to your computer.
cd react-use-websocket
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
npm install --save react-use-websocket@3.0.0
Downloads and installs the libraries listed in package.json.
yarn add react-use-websocket@3.0.0
Type this command into your terminal and run it.
npm install react-use-websocket
Downloads and installs the libraries listed in package.json.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
