@libp2p/interface
Advanced tools
Comparing version 2.2.0-d30d07e6f to 2.2.0-eee97c7d4
@@ -8,3 +8,2 @@ import type { Connection, ConnectionLimits, MultiaddrConnection } from '../connection/index.js'; | ||
export interface ListenerEvents { | ||
'connection': CustomEvent<Connection>; | ||
'listening': CustomEvent; | ||
@@ -38,3 +37,2 @@ 'error': CustomEvent<Error>; | ||
export interface CreateListenerOptions { | ||
handler?: ConnectionHandler; | ||
upgrader: Upgrader; | ||
@@ -100,10 +98,10 @@ } | ||
/** | ||
* Upgrades an outbound connection on `transport.dial`. | ||
* Upgrades an outbound connection on `transport.dial` | ||
*/ | ||
upgradeOutbound(maConn: MultiaddrConnection, opts?: UpgraderOptions<OutboundConnectionUpgradeEvents>): Promise<Connection>; | ||
/** | ||
* Upgrades an inbound connection on transport listener. | ||
* Upgrades an inbound connection received by a transport listener | ||
*/ | ||
upgradeInbound(maConn: MultiaddrConnection, opts?: UpgraderOptions<InboundConnectionUpgradeEvents>): Promise<Connection>; | ||
upgradeInbound(maConn: MultiaddrConnection, opts?: UpgraderOptions<InboundConnectionUpgradeEvents>): Promise<void>; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@libp2p/interface", | ||
"version": "2.2.0-d30d07e6f", | ||
"version": "2.2.0-eee97c7d4", | ||
"description": "The interface implemented by a libp2p node", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT", |
@@ -9,3 +9,2 @@ import type { Connection, ConnectionLimits, MultiaddrConnection } from '../connection/index.js' | ||
export interface ListenerEvents { | ||
'connection': CustomEvent<Connection> | ||
'listening': CustomEvent | ||
@@ -40,3 +39,2 @@ 'error': CustomEvent<Error> | ||
export interface CreateListenerOptions { | ||
handler?: ConnectionHandler | ||
upgrader: Upgrader | ||
@@ -122,3 +120,3 @@ } | ||
/** | ||
* Upgrades an outbound connection on `transport.dial`. | ||
* Upgrades an outbound connection on `transport.dial` | ||
*/ | ||
@@ -128,5 +126,5 @@ upgradeOutbound(maConn: MultiaddrConnection, opts?: UpgraderOptions<OutboundConnectionUpgradeEvents>): Promise<Connection> | ||
/** | ||
* Upgrades an inbound connection on transport listener. | ||
* Upgrades an inbound connection received by a transport listener | ||
*/ | ||
upgradeInbound(maConn: MultiaddrConnection, opts?: UpgraderOptions<InboundConnectionUpgradeEvents>): Promise<Connection> | ||
upgradeInbound(maConn: MultiaddrConnection, opts?: UpgraderOptions<InboundConnectionUpgradeEvents>): Promise<void> | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
300665
7431