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: 25 days 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 (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-10T11:11:00.000Z (almost 2 years ago)
- Last Synced: 2025-06-20T06:07:14.935Z (25 days ago)
- Topics: react-hooks, socket-io
- Language: TypeScript
- Homepage: http://npm.im/@casper124578/use-socket.io
- Size: 1.09 MB
- Stars: 5
- Watchers: 1
- 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)