Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/casperiv0/use-socket.io
Simple package to use Socket.io with React hooks.
https://github.com/casperiv0/use-socket.io
react-hooks socket-io
Last synced: 2 months ago
JSON representation
Simple package to use Socket.io with React hooks.
- Host: GitHub
- URL: https://github.com/casperiv0/use-socket.io
- Owner: casperiv0
- License: mit
- Created: 2021-10-11T14:22:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-10T11:11:00.000Z (over 1 year ago)
- Last Synced: 2024-10-23T01:13:32.829Z (3 months ago)
- Topics: react-hooks, socket-io
- Language: TypeScript
- Homepage: http://npm.im/@casper124578/use-socket.io
- Size: 1.09 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# use-socket.io
Simple package to use Socket.io with React hooks.
## Installation
```bash
# npm
npm install @casperiv/use-socket.io# Yarn
yarn add @casperiv/use-socket.io# pnpm
pnpm install @casperiv/use-socket.io
```## Usage
```tsx
// src/App.tsx
import { SocketProvider } from "@casperiv/use-socket.io";export default function App() {
return (
);
}
```## Documentation
[You can view documentation here](https://github.com/casperiv0/use-socket.io/blob/main/docs/README.md)