This package has been deprecated

Author message:

Renamed to react-use-ws

@jawis/use-websocket
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

useWebsocket

React hook to open/close a websocket connection when a component mounts/unmounts.

Installation

npm i use-websocket

Usage

Known issues

Related work

License

MIT

Package Sidebar

Install

npm i @jawis/use-websocket

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

12.3 kB

Total Files

13

Last publish

Collaborators

  • jawis