This package has been deprecated

Author message:

This package has been moved to `@casperiv/use-socket.io`

@casper124578/use-socket.io
TypeScript icon, indicating that this package has built-in type declarations

5.1.0 • Public • Published

use-socket.io

Simple package to use Socket.io with React hooks.

Installation

# npm
npm install @casper124578/use-socket.io

# Yarn
yarn add @casper124578/use-socket.io

# pnpm
pnpm install @casper124578/use-socket.io

Usage

// src/App.tsx
import { SocketProvider } from "@casper124578/use-socket.io";

export default function App() {
  return (
    <SocketProvider
      uri="http://localhost:3030"
      options={
        {
          /** ... */
        }
      }
    >
      <App />
    </SocketProvider>
  );
}

Documentation

You can view documentation here

/@casper124578/use-socket.io/

    Package Sidebar

    Install

    npm i @casper124578/use-socket.io

    Weekly Downloads

    7

    Version

    5.1.0

    License

    MIT

    Unpacked Size

    8.41 kB

    Total Files

    6

    Last publish

    Collaborators

    • casper124578