Documentation
/Hooks
/useWebSocketProvider
useWebSocketProvider
Hook for accessing ethers.js WebSocketProvider from global configuration.
import { useWebSocketProvider } from 'wagmi'
Usage
import { useWebSocketProvider } from 'wagmi'
const App = () => {
const webSocketProvider = useWebSocketProvider()
return ...
}
Return Values
ethers.WebSocketProvider