UNPKG

@libp2p/websockets

Version:

JavaScript implementation of the WebSockets module that libp2p uses and that implements the interface-transport spec

6 lines (4 loc) 173 B
import type { Listener } from '@libp2p/interface' export function createListener (): Listener { throw new Error('WebSocket Servers can not be created in the browser!') }