Socket
Socket
Sign inDemoInstall

@casperiv/use-socket.io

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@casperiv/use-socket.io

Use Socket.io-client with hooks


Version published
Weekly downloads
39
decreased by-37.1%
Maintainers
1
Weekly downloads
 
Created
Source

use-socket.io

Simple package to use Socket.io with React hooks.

Installation

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

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

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

Usage

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

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

Documentation

You can view documentation here

Keywords

FAQs

Package last updated on 10 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc