@streamr/dht 100.0.0-pretestnet.2 → 100.0.0-pretestnet.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/connection/ConnectionLockHandler.d.ts +7 -8
- package/dist/src/connection/ConnectionLockHandler.js +16 -14
- package/dist/src/connection/ConnectionLockHandler.js.map +1 -1
- package/dist/src/connection/ConnectionLockRpcLocal.d.ts +20 -0
- package/dist/src/connection/ConnectionLockRpcLocal.js +47 -0
- package/dist/src/connection/ConnectionLockRpcLocal.js.map +1 -0
- package/dist/src/connection/ConnectionLockRpcRemote.d.ts +4 -3
- package/dist/src/connection/ConnectionLockRpcRemote.js +6 -6
- package/dist/src/connection/ConnectionLockRpcRemote.js.map +1 -1
- package/dist/src/connection/ConnectionManager.d.ts +5 -8
- package/dist/src/connection/ConnectionManager.js +77 -107
- package/dist/src/connection/ConnectionManager.js.map +1 -1
- package/dist/src/connection/ConnectivityChecker.d.ts +7 -6
- package/dist/src/connection/ConnectivityChecker.js +23 -20
- package/dist/src/connection/ConnectivityChecker.js.map +1 -1
- package/dist/src/connection/ConnectorFacade.d.ts +15 -12
- package/dist/src/connection/ConnectorFacade.js +61 -26
- package/dist/src/connection/ConnectorFacade.js.map +1 -1
- package/dist/src/connection/Handshaker.d.ts +2 -2
- package/dist/src/connection/Handshaker.js +28 -28
- package/dist/src/connection/Handshaker.js.map +1 -1
- package/dist/src/connection/IConnection.d.ts +5 -6
- package/dist/src/connection/IConnection.js.map +1 -1
- package/dist/src/connection/ManagedConnection.d.ts +3 -4
- package/dist/src/connection/ManagedConnection.js +30 -30
- package/dist/src/connection/ManagedConnection.js.map +1 -1
- package/dist/src/connection/ManagedWebrtcConnection.d.ts +7 -0
- package/dist/src/connection/ManagedWebrtcConnection.js +20 -0
- package/dist/src/connection/ManagedWebrtcConnection.js.map +1 -0
- package/dist/src/connection/{Simulator → simulator}/Simulator.js +3 -3
- package/dist/src/connection/{Simulator → simulator}/Simulator.js.map +1 -1
- package/dist/src/connection/{Simulator → simulator}/SimulatorConnection.d.ts +3 -4
- package/dist/src/connection/{Simulator → simulator}/SimulatorConnection.js +22 -22
- package/dist/src/connection/simulator/SimulatorConnection.js.map +1 -0
- package/dist/src/connection/{Simulator → simulator}/SimulatorConnector.d.ts +2 -2
- package/dist/src/connection/{Simulator → simulator}/SimulatorConnector.js +11 -11
- package/dist/src/connection/{Simulator → simulator}/SimulatorConnector.js.map +1 -1
- package/dist/src/connection/{Simulator → simulator}/SimulatorTransport.d.ts +1 -1
- package/dist/src/connection/{Simulator → simulator}/SimulatorTransport.js +2 -2
- package/dist/src/connection/simulator/SimulatorTransport.js.map +1 -0
- package/dist/src/connection/{Simulator → simulator}/pings.js.map +1 -1
- package/dist/src/connection/{WebRTC/IWebRtcConnection.d.ts → webrtc/IWebrtcConnection.d.ts} +2 -2
- package/dist/src/connection/{WebRTC/IWebRtcConnection.js → webrtc/IWebrtcConnection.js} +1 -1
- package/dist/src/connection/webrtc/IWebrtcConnection.js.map +1 -0
- package/dist/src/connection/{WebRTC/NodeWebRtcConnection.d.ts → webrtc/NodeWebrtcConnection.d.ts} +6 -7
- package/dist/src/connection/{WebRTC/NodeWebRtcConnection.js → webrtc/NodeWebrtcConnection.js} +36 -36
- package/dist/src/connection/webrtc/NodeWebrtcConnection.js.map +1 -0
- package/dist/src/connection/webrtc/WebrtcConnector.d.ts +38 -0
- package/dist/src/connection/webrtc/WebrtcConnector.js +178 -0
- package/dist/src/connection/webrtc/WebrtcConnector.js.map +1 -0
- package/dist/src/connection/webrtc/WebrtcConnectorRpcLocal.d.ts +26 -0
- package/dist/src/connection/webrtc/WebrtcConnectorRpcLocal.js +99 -0
- package/dist/src/connection/webrtc/WebrtcConnectorRpcLocal.js.map +1 -0
- package/dist/src/connection/{WebRTC/WebRtcConnectorRpcRemote.d.ts → webrtc/WebrtcConnectorRpcRemote.d.ts} +4 -4
- package/dist/src/connection/{WebRTC/WebRtcConnectorRpcRemote.js → webrtc/WebrtcConnectorRpcRemote.js} +6 -8
- package/dist/src/connection/webrtc/WebrtcConnectorRpcRemote.js.map +1 -0
- package/dist/src/connection/{WebRTC → webrtc}/iceServerAsString.d.ts +1 -1
- package/dist/src/connection/{WebRTC → webrtc}/iceServerAsString.js.map +1 -1
- package/dist/src/connection/websocket/AutoCertifierClientFacade.d.ts +26 -0
- package/dist/src/connection/websocket/AutoCertifierClientFacade.js +37 -0
- package/dist/src/connection/websocket/AutoCertifierClientFacade.js.map +1 -0
- package/dist/src/connection/{WebSocket/ClientWebSocket.d.ts → websocket/ClientWebsocket.d.ts} +5 -4
- package/dist/src/connection/{WebSocket/ClientWebSocket.js → websocket/ClientWebsocket.js} +20 -16
- package/dist/src/connection/websocket/ClientWebsocket.js.map +1 -0
- package/dist/src/connection/{WebSocket/ServerWebSocket.d.ts → websocket/ServerWebsocket.d.ts} +2 -2
- package/dist/src/connection/{WebSocket/ServerWebSocket.js → websocket/ServerWebsocket.js} +23 -27
- package/dist/src/connection/websocket/ServerWebsocket.js.map +1 -0
- package/dist/src/connection/{WebSocket/WebSocketConnectorRpcLocal.d.ts → websocket/WebsocketConnector.d.ts} +23 -15
- package/dist/src/connection/{WebSocket/WebSocketConnectorRpcLocal.js → websocket/WebsocketConnector.js} +107 -101
- package/dist/src/connection/websocket/WebsocketConnector.js.map +1 -0
- package/dist/src/connection/websocket/WebsocketConnectorRpcLocal.d.ts +17 -0
- package/dist/src/connection/websocket/WebsocketConnectorRpcLocal.js +26 -0
- package/dist/src/connection/websocket/WebsocketConnectorRpcLocal.js.map +1 -0
- package/dist/src/connection/{WebSocket/WebSocketConnectorRpcRemote.d.ts → websocket/WebsocketConnectorRpcRemote.d.ts} +3 -3
- package/dist/src/connection/{WebSocket/WebSocketConnectorRpcRemote.js → websocket/WebsocketConnectorRpcRemote.js} +5 -10
- package/dist/src/connection/{WebSocket/WebSocketConnectorRpcRemote.js.map → websocket/WebsocketConnectorRpcRemote.js.map} +1 -1
- package/dist/src/connection/{WebSocket/WebSocketServer.d.ts → websocket/WebsocketServer.d.ts} +6 -3
- package/dist/src/connection/{WebSocket/WebSocketServer.js → websocket/WebsocketServer.js} +39 -19
- package/dist/src/connection/websocket/WebsocketServer.js.map +1 -0
- package/dist/src/dht/DhtNode.d.ts +11 -19
- package/dist/src/dht/DhtNode.js +119 -150
- package/dist/src/dht/DhtNode.js.map +1 -1
- package/dist/src/dht/DhtNodeRpcLocal.d.ts +22 -0
- package/dist/src/dht/DhtNodeRpcLocal.js +42 -0
- package/dist/src/dht/DhtNodeRpcLocal.js.map +1 -0
- package/dist/src/dht/{RemoteDhtNode.d.ts → DhtNodeRpcRemote.d.ts} +5 -3
- package/dist/src/dht/{RemoteDhtNode.js → DhtNodeRpcRemote.js} +17 -21
- package/dist/src/dht/DhtNodeRpcRemote.js.map +1 -0
- package/dist/src/dht/ExternalApiRpcLocal.d.ts +16 -0
- package/dist/src/dht/ExternalApiRpcLocal.js +30 -0
- package/dist/src/dht/ExternalApiRpcLocal.js.map +1 -0
- package/dist/src/dht/ExternalApiRpcRemote.d.ts +1 -1
- package/dist/src/dht/ExternalApiRpcRemote.js +2 -2
- package/dist/src/dht/ExternalApiRpcRemote.js.map +1 -1
- package/dist/src/dht/contact/Remote.d.ts +4 -1
- package/dist/src/dht/contact/Remote.js +28 -2
- package/dist/src/dht/contact/Remote.js.map +1 -1
- package/dist/src/dht/contact/SortedContactList.d.ts +2 -2
- package/dist/src/dht/contact/SortedContactList.js +3 -3
- package/dist/src/dht/contact/SortedContactList.js.map +1 -1
- package/dist/src/dht/discovery/DiscoverySession.d.ts +9 -7
- package/dist/src/dht/discovery/DiscoverySession.js +8 -8
- package/dist/src/dht/discovery/DiscoverySession.js.map +1 -1
- package/dist/src/dht/discovery/PeerDiscovery.d.ts +7 -10
- package/dist/src/dht/discovery/PeerDiscovery.js +5 -5
- package/dist/src/dht/discovery/PeerDiscovery.js.map +1 -1
- package/dist/src/dht/find/FindRpcLocal.d.ts +14 -0
- package/dist/src/dht/find/FindRpcLocal.js +25 -0
- package/dist/src/dht/find/FindRpcLocal.js.map +1 -0
- package/dist/src/dht/find/{RecursiveFindSession.d.ts → FindSession.d.ts} +12 -13
- package/dist/src/dht/find/{RecursiveFindSession.js → FindSession.js} +17 -15
- package/dist/src/dht/find/FindSession.js.map +1 -0
- package/dist/src/dht/find/FindSessionRpcLocal.d.ts +12 -0
- package/dist/src/dht/find/FindSessionRpcLocal.js +17 -0
- package/dist/src/dht/find/FindSessionRpcLocal.js.map +1 -0
- package/dist/src/dht/find/{RemoteRecursiveFindSession.d.ts → FindSessionRpcRemote.d.ts} +2 -2
- package/dist/src/dht/find/{RemoteRecursiveFindSession.js → FindSessionRpcRemote.js} +5 -5
- package/dist/src/dht/find/FindSessionRpcRemote.js.map +1 -0
- package/dist/src/dht/find/{RecursiveFinder.d.ts → Finder.d.ts} +16 -19
- package/dist/src/dht/find/{RecursiveFinder.js → Finder.js} +50 -46
- package/dist/src/dht/find/Finder.js.map +1 -0
- package/dist/src/dht/routing/FindRpcRemote.d.ts +6 -0
- package/dist/src/dht/routing/FindRpcRemote.js +41 -0
- package/dist/src/dht/routing/FindRpcRemote.js.map +1 -0
- package/dist/src/dht/routing/Router.d.ts +10 -17
- package/dist/src/dht/routing/Router.js +47 -90
- package/dist/src/dht/routing/Router.js.map +1 -1
- package/dist/src/dht/routing/RouterRpcLocal.d.ts +22 -0
- package/dist/src/dht/routing/RouterRpcLocal.js +66 -0
- package/dist/src/dht/routing/RouterRpcLocal.js.map +1 -0
- package/dist/src/dht/routing/RouterRpcRemote.d.ts +0 -1
- package/dist/src/dht/routing/RouterRpcRemote.js +15 -43
- package/dist/src/dht/routing/RouterRpcRemote.js.map +1 -1
- package/dist/src/dht/routing/RoutingSession.d.ts +17 -8
- package/dist/src/dht/routing/RoutingSession.js +124 -131
- package/dist/src/dht/routing/RoutingSession.js.map +1 -1
- package/dist/src/dht/routing/getPreviousPeer.d.ts +2 -0
- package/dist/src/dht/routing/getPreviousPeer.js +9 -0
- package/dist/src/dht/routing/getPreviousPeer.js.map +1 -0
- package/dist/src/dht/store/StoreRpcLocal.d.ts +11 -8
- package/dist/src/dht/store/StoreRpcLocal.js +25 -24
- package/dist/src/dht/store/StoreRpcLocal.js.map +1 -1
- package/dist/src/dht/store/StoreRpcRemote.js +3 -7
- package/dist/src/dht/store/StoreRpcRemote.js.map +1 -1
- package/dist/src/exports.d.ts +11 -5
- package/dist/src/exports.js +17 -4
- package/dist/src/exports.js.map +1 -1
- package/dist/src/helpers/Connectivity.d.ts +4 -0
- package/dist/src/helpers/Connectivity.js +24 -0
- package/dist/src/helpers/Connectivity.js.map +1 -0
- package/dist/src/helpers/errors.d.ts +3 -3
- package/dist/src/helpers/errors.js +7 -7
- package/dist/src/helpers/protoClasses.js +3 -3
- package/dist/src/proto/packages/dht/protos/DhtRpc.client.d.ts +56 -39
- package/dist/src/proto/packages/dht/protos/DhtRpc.client.js +49 -36
- package/dist/src/proto/packages/dht/protos/DhtRpc.client.js.map +1 -1
- package/dist/src/proto/packages/dht/protos/DhtRpc.d.ts +64 -84
- package/dist/src/proto/packages/dht/protos/DhtRpc.js +64 -66
- package/dist/src/proto/packages/dht/protos/DhtRpc.js.map +1 -1
- package/dist/src/proto/packages/dht/protos/DhtRpc.server.d.ts +26 -21
- package/dist/src/rpc-protocol/DhtCallContext.d.ts +0 -1
- package/dist/src/rpc-protocol/DhtCallContext.js.map +1 -1
- package/dist/src/transport/ITransport.d.ts +5 -6
- package/dist/src/transport/ListeningRpcCommunicator.d.ts +2 -1
- package/dist/src/transport/ListeningRpcCommunicator.js.map +1 -1
- package/dist/src/transport/RoutingRpcCommunicator.d.ts +2 -1
- package/dist/src/transport/RoutingRpcCommunicator.js +0 -1
- package/dist/src/transport/RoutingRpcCommunicator.js.map +1 -1
- package/dist/src/types/ServiceID.d.ts +1 -0
- package/dist/src/types/ServiceID.js +3 -0
- package/dist/src/types/ServiceID.js.map +1 -0
- package/karma.config.js +4 -4
- package/package.json +10 -8
- package/protos/DhtRpc.proto +32 -35
- package/src/connection/ConnectionLockHandler.ts +19 -17
- package/src/connection/ConnectionLockRpcLocal.ts +74 -0
- package/src/connection/ConnectionLockRpcRemote.ts +7 -6
- package/src/connection/ConnectionManager.ts +59 -95
- package/src/connection/ConnectivityChecker.ts +30 -26
- package/src/connection/ConnectorFacade.ts +74 -34
- package/src/connection/Handshaker.ts +9 -9
- package/src/connection/IConnection.ts +5 -6
- package/src/connection/ManagedConnection.ts +21 -22
- package/src/connection/{ManagedWebRtcConnection.ts → ManagedWebrtcConnection.ts} +9 -9
- package/src/connection/{Simulator → simulator}/Simulator.ts +4 -4
- package/src/connection/{Simulator → simulator}/SimulatorConnection.ts +23 -24
- package/src/connection/{Simulator → simulator}/SimulatorConnector.ts +13 -13
- package/src/connection/{Simulator → simulator}/SimulatorTransport.ts +2 -2
- package/src/connection/{WebRTC/BrowserWebRtcConnection.ts → webrtc/BrowserWebrtcConnection.ts} +12 -13
- package/src/connection/{WebRTC/IWebRtcConnection.ts → webrtc/IWebrtcConnection.ts} +2 -2
- package/src/connection/{WebRTC/NodeWebRtcConnection.ts → webrtc/NodeWebrtcConnection.ts} +32 -33
- package/src/connection/webrtc/WebrtcConnector.ts +225 -0
- package/src/connection/webrtc/WebrtcConnectorRpcLocal.ts +132 -0
- package/src/connection/{WebRTC/WebRtcConnectorRpcRemote.ts → webrtc/WebrtcConnectorRpcRemote.ts} +6 -7
- package/src/connection/{WebRTC → webrtc}/iceServerAsString.ts +1 -1
- package/src/connection/websocket/AutoCertifierClientFacade.ts +91 -0
- package/src/connection/{WebSocket/ClientWebSocket.ts → websocket/ClientWebsocket.ts} +19 -17
- package/src/connection/{WebSocket/ServerWebSocket.ts → websocket/ServerWebsocket.ts} +21 -27
- package/src/connection/{WebSocket/WebSocketConnectorRpcLocal.ts → websocket/WebsocketConnector.ts} +109 -100
- package/src/connection/websocket/WebsocketConnectorRpcLocal.ts +41 -0
- package/src/connection/{WebSocket/WebSocketConnectorRpcRemote.ts → websocket/WebsocketConnectorRpcRemote.ts} +6 -12
- package/src/connection/{WebSocket/WebSocketServer.ts → websocket/WebsocketServer.ts} +40 -22
- package/src/dht/DhtNode.ts +144 -179
- package/src/dht/DhtNodeRpcLocal.ts +68 -0
- package/src/dht/{RemoteDhtNode.ts → DhtNodeRpcRemote.ts} +12 -13
- package/src/dht/ExternalApiRpcLocal.ts +46 -0
- package/src/dht/ExternalApiRpcRemote.ts +4 -4
- package/src/dht/contact/Remote.ts +32 -4
- package/src/dht/contact/SortedContactList.ts +4 -4
- package/src/dht/discovery/DiscoverySession.ts +23 -20
- package/src/dht/discovery/PeerDiscovery.ts +14 -17
- package/src/dht/find/FindRpcLocal.ts +35 -0
- package/src/dht/find/{RecursiveFindSession.ts → FindSession.ts} +25 -25
- package/src/dht/find/FindSessionRpcLocal.ts +25 -0
- package/src/dht/find/{RemoteRecursiveFindSession.ts → FindSessionRpcRemote.ts} +9 -5
- package/src/dht/find/{RecursiveFinder.ts → Finder.ts} +77 -71
- package/src/dht/routing/FindRpcRemote.ts +40 -0
- package/src/dht/routing/Router.ts +69 -105
- package/src/dht/routing/RouterRpcLocal.ts +81 -0
- package/src/dht/routing/RouterRpcRemote.ts +15 -45
- package/src/dht/routing/RoutingSession.ts +56 -61
- package/src/dht/routing/getPreviousPeer.ts +6 -0
- package/src/dht/store/StoreRpcLocal.ts +44 -37
- package/src/dht/store/StoreRpcRemote.ts +4 -8
- package/src/exports.ts +11 -5
- package/src/helpers/Connectivity.ts +19 -0
- package/src/helpers/errors.ts +3 -3
- package/src/helpers/protoClasses.ts +6 -6
- package/src/proto/packages/dht/protos/DhtRpc.client.ts +75 -59
- package/src/proto/packages/dht/protos/DhtRpc.server.ts +26 -21
- package/src/proto/packages/dht/protos/DhtRpc.ts +87 -114
- package/src/rpc-protocol/DhtCallContext.ts +0 -1
- package/src/transport/ITransport.ts +5 -8
- package/src/transport/ListeningRpcCommunicator.ts +2 -1
- package/src/transport/RoutingRpcCommunicator.ts +3 -4
- package/src/types/ServiceID.ts +1 -0
- package/test/benchmark/{RecursiveFind.test.ts → Find.test.ts} +6 -6
- package/test/benchmark/KademliaCorrectness.test.ts +2 -2
- package/test/benchmark/kademlia-simulation/SimulationNode.ts +3 -3
- package/test/end-to-end/Layer0-Layer1.test.ts +13 -5
- package/test/end-to-end/Layer0.test.ts +35 -17
- package/test/end-to-end/Layer0MixedConnectionTypes.test.ts +24 -6
- package/test/end-to-end/{Layer0WebRTC-Layer1.test.ts → Layer0Webrtc-Layer1.test.ts} +1 -1
- package/test/end-to-end/{Layer0WebRTC.test.ts → Layer0Webrtc.test.ts} +14 -10
- package/test/end-to-end/Layer1-Scale-WebSocket.test.ts +8 -4
- package/test/end-to-end/{Layer1-Scale-WebRTC.test.ts → Layer1-Scale-Webrtc.test.ts} +2 -2
- package/test/end-to-end/RecoveryFromFailedAutoCertification.test.ts +52 -0
- package/test/end-to-end/{WebSocketConnectionRequest.test.ts → WebsocketConnectionRequest.test.ts} +16 -8
- package/test/end-to-end/memory-leak.test.ts +85 -0
- package/test/integration/ConnectionLocking.test.ts +4 -4
- package/test/integration/ConnectionManager.test.ts +37 -28
- package/test/integration/DhtJoinPeerDiscovery.test.ts +2 -2
- package/test/integration/DhtNodeExternalAPI.test.ts +10 -10
- package/test/integration/{RemoteDhtNode.test.ts → DhtNodeRpcRemote.test.ts} +10 -10
- package/test/integration/DhtRpc.test.ts +5 -5
- package/test/integration/{RecursiveFind.test.ts → Find.test.ts} +3 -3
- package/test/integration/Layer1-scale.test.ts +1 -1
- package/test/integration/MigrateData.test.ts +6 -5
- package/test/integration/Mock-Layer1-Layer0.test.ts +1 -1
- package/test/integration/MultipleEntryPointJoining.test.ts +6 -6
- package/test/integration/RouteMessage.test.ts +26 -26
- package/test/integration/RpcErrors.test.ts +10 -10
- package/test/integration/ScaleDownDht.test.ts +3 -3
- package/test/integration/SimultaneousConnections.test.ts +10 -7
- package/test/integration/Store.test.ts +1 -1
- package/test/integration/StoreAndDelete.test.ts +1 -1
- package/test/integration/StoreOnDhtWithTwoNodes.test.ts +12 -12
- package/test/integration/{WebRtcConnectionManagement.test.ts → WebrtcConnectionManagement.test.ts} +4 -4
- package/test/integration/{WebRtcConnectorRpc.test.ts → WebrtcConnectorRpc.test.ts} +7 -8
- package/test/integration/{WebSocket.test.ts → Websocket.test.ts} +14 -13
- package/test/integration/{WebSocketConnectionManagement.test.ts → WebsocketConnectionManagement.test.ts} +4 -4
- package/test/integration/{WebSocketConnectorRpc.test.ts → WebsocketConnectorRpc.test.ts} +15 -15
- package/test/unit/AutoCertifierClientFacade.test.ts +58 -0
- package/test/unit/ConnectivityHelpers.test.ts +69 -0
- package/test/unit/{RecursiveFinder.test.ts → Finder.test.ts} +19 -17
- package/test/unit/Router.test.ts +26 -26
- package/test/unit/UUID.test.ts +1 -1
- package/test/unit/{WebSocketConnectorRpcLocal.test.ts → WebsocketConnector.test.ts} +8 -8
- package/test/unit/{WebSocketServer.test.ts → WebsocketServer.test.ts} +20 -14
- package/test/unit/webrtcReplaceInternalIpWithExternalIp.test.ts +1 -1
- package/test/utils/FakeRpcCommunicator.ts +23 -0
- package/test/utils/mock/Transport.ts +1 -1
- package/test/utils/utils.ts +14 -24
- package/tsconfig.browser.json +1 -1
- package/tsconfig.jest.json +3 -2
- package/tsconfig.node.json +3 -2
- package/dist/src/connection/ManagedWebRtcConnection.d.ts +0 -7
- package/dist/src/connection/ManagedWebRtcConnection.js +0 -20
- package/dist/src/connection/ManagedWebRtcConnection.js.map +0 -1
- package/dist/src/connection/Simulator/SimulatorConnection.js.map +0 -1
- package/dist/src/connection/Simulator/SimulatorTransport.js.map +0 -1
- package/dist/src/connection/WebRTC/IWebRtcConnection.js.map +0 -1
- package/dist/src/connection/WebRTC/NodeWebRtcConnection.js.map +0 -1
- package/dist/src/connection/WebRTC/WebRtcConnectorRpcLocal.d.ts +0 -51
- package/dist/src/connection/WebRTC/WebRtcConnectorRpcLocal.js +0 -249
- package/dist/src/connection/WebRTC/WebRtcConnectorRpcLocal.js.map +0 -1
- package/dist/src/connection/WebRTC/WebRtcConnectorRpcRemote.js.map +0 -1
- package/dist/src/connection/WebSocket/ClientWebSocket.js.map +0 -1
- package/dist/src/connection/WebSocket/ServerWebSocket.js.map +0 -1
- package/dist/src/connection/WebSocket/WebSocketConnectorRpcLocal.js.map +0 -1
- package/dist/src/connection/WebSocket/WebSocketServer.js.map +0 -1
- package/dist/src/dht/RemoteDhtNode.js.map +0 -1
- package/dist/src/dht/find/RecursiveFindSession.js.map +0 -1
- package/dist/src/dht/find/RecursiveFinder.js.map +0 -1
- package/dist/src/dht/find/RemoteRecursiveFindSession.js.map +0 -1
- package/dist/src/dht/registerExternalApiRpcMethods.d.ts +0 -2
- package/dist/src/dht/registerExternalApiRpcMethods.js +0 -32
- package/dist/src/dht/registerExternalApiRpcMethods.js.map +0 -1
- package/src/connection/WebRTC/WebRtcConnectorRpcLocal.ts +0 -335
- package/src/dht/registerExternalApiRpcMethods.ts +0 -44
- package/test/utils/mock/RecursiveFinder.ts +0 -19
- /package/dist/src/connection/{Simulator → simulator}/Simulator.d.ts +0 -0
- /package/dist/src/connection/{Simulator → simulator}/pings.d.ts +0 -0
- /package/dist/src/connection/{Simulator → simulator}/pings.js +0 -0
- /package/dist/src/connection/{WebRTC → webrtc}/iceServerAsString.js +0 -0
- /package/src/connection/{Simulator → simulator}/pings.ts +0 -0
package/dist/src/exports.d.ts
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
export { DhtNode, DhtNodeEvents, DhtNodeOptions } from './dht/DhtNode';
|
|
2
2
|
export { ListeningRpcCommunicator } from './transport/ListeningRpcCommunicator';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
3
|
+
export { RoutingRpcCommunicator } from './transport/RoutingRpcCommunicator';
|
|
4
|
+
export { Simulator, LatencyType } from './connection/simulator/Simulator';
|
|
5
|
+
export { SimulatorTransport } from './connection/simulator/SimulatorTransport';
|
|
6
|
+
export { getRandomRegion, getRegionDelayMatrix } from './connection/simulator/pings';
|
|
6
7
|
export { PeerDescriptor, Message, NodeType, DataEntry } from './proto/packages/dht/protos/DhtRpc';
|
|
7
8
|
export { ITransport } from './transport/ITransport';
|
|
8
9
|
export { ConnectionManager, ConnectionLocker, PortRange, TlsCertificate } from './connection/ConnectionManager';
|
|
10
|
+
export { DefaultConnectorFacade } from './connection/ConnectorFacade';
|
|
9
11
|
export { DhtRpcOptions } from './rpc-protocol/DhtRpcOptions';
|
|
10
|
-
export { Remote } from './dht/contact/Remote';
|
|
12
|
+
export { Remote, EXISTING_CONNECTION_TIMEOUT } from './dht/contact/Remote';
|
|
11
13
|
export { areEqualPeerDescriptors } from './helpers/peerIdFromPeerDescriptor';
|
|
12
|
-
export { IceServer } from './connection/
|
|
14
|
+
export { IceServer } from './connection/webrtc/WebrtcConnector';
|
|
13
15
|
export { DhtCallContext } from './rpc-protocol/DhtCallContext';
|
|
16
|
+
export { ClientWebsocket } from './connection/websocket/ClientWebsocket';
|
|
17
|
+
export { ManagedConnection } from './connection/ManagedConnection';
|
|
18
|
+
export { ConnectionType } from './connection/IConnection';
|
|
19
|
+
export { PeerID } from './helpers/PeerID';
|
package/dist/src/exports.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DhtCallContext = exports.areEqualPeerDescriptors = exports.Remote = exports.ConnectionManager = exports.DataEntry = exports.NodeType = exports.Message = exports.PeerDescriptor = exports.getRegionDelayMatrix = exports.getRandomRegion = exports.SimulatorTransport = exports.LatencyType = exports.Simulator = exports.ListeningRpcCommunicator = exports.DhtNode = void 0;
|
|
3
|
+
exports.PeerID = exports.ConnectionType = exports.ManagedConnection = exports.ClientWebsocket = exports.DhtCallContext = exports.areEqualPeerDescriptors = exports.EXISTING_CONNECTION_TIMEOUT = exports.Remote = exports.DefaultConnectorFacade = exports.ConnectionManager = exports.DataEntry = exports.NodeType = exports.Message = exports.PeerDescriptor = exports.getRegionDelayMatrix = exports.getRandomRegion = exports.SimulatorTransport = exports.LatencyType = exports.Simulator = exports.RoutingRpcCommunicator = exports.ListeningRpcCommunicator = exports.DhtNode = void 0;
|
|
4
4
|
var DhtNode_1 = require("./dht/DhtNode");
|
|
5
5
|
Object.defineProperty(exports, "DhtNode", { enumerable: true, get: function () { return DhtNode_1.DhtNode; } });
|
|
6
6
|
var ListeningRpcCommunicator_1 = require("./transport/ListeningRpcCommunicator");
|
|
7
7
|
Object.defineProperty(exports, "ListeningRpcCommunicator", { enumerable: true, get: function () { return ListeningRpcCommunicator_1.ListeningRpcCommunicator; } });
|
|
8
|
-
var
|
|
8
|
+
var RoutingRpcCommunicator_1 = require("./transport/RoutingRpcCommunicator");
|
|
9
|
+
Object.defineProperty(exports, "RoutingRpcCommunicator", { enumerable: true, get: function () { return RoutingRpcCommunicator_1.RoutingRpcCommunicator; } });
|
|
10
|
+
var Simulator_1 = require("./connection/simulator/Simulator");
|
|
9
11
|
Object.defineProperty(exports, "Simulator", { enumerable: true, get: function () { return Simulator_1.Simulator; } });
|
|
10
12
|
Object.defineProperty(exports, "LatencyType", { enumerable: true, get: function () { return Simulator_1.LatencyType; } });
|
|
11
|
-
var SimulatorTransport_1 = require("./connection/
|
|
13
|
+
var SimulatorTransport_1 = require("./connection/simulator/SimulatorTransport");
|
|
12
14
|
Object.defineProperty(exports, "SimulatorTransport", { enumerable: true, get: function () { return SimulatorTransport_1.SimulatorTransport; } });
|
|
13
|
-
var pings_1 = require("./connection/
|
|
15
|
+
var pings_1 = require("./connection/simulator/pings");
|
|
14
16
|
Object.defineProperty(exports, "getRandomRegion", { enumerable: true, get: function () { return pings_1.getRandomRegion; } });
|
|
15
17
|
Object.defineProperty(exports, "getRegionDelayMatrix", { enumerable: true, get: function () { return pings_1.getRegionDelayMatrix; } });
|
|
16
18
|
var DhtRpc_1 = require("./proto/packages/dht/protos/DhtRpc");
|
|
@@ -20,10 +22,21 @@ Object.defineProperty(exports, "NodeType", { enumerable: true, get: function ()
|
|
|
20
22
|
Object.defineProperty(exports, "DataEntry", { enumerable: true, get: function () { return DhtRpc_1.DataEntry; } });
|
|
21
23
|
var ConnectionManager_1 = require("./connection/ConnectionManager");
|
|
22
24
|
Object.defineProperty(exports, "ConnectionManager", { enumerable: true, get: function () { return ConnectionManager_1.ConnectionManager; } });
|
|
25
|
+
var ConnectorFacade_1 = require("./connection/ConnectorFacade");
|
|
26
|
+
Object.defineProperty(exports, "DefaultConnectorFacade", { enumerable: true, get: function () { return ConnectorFacade_1.DefaultConnectorFacade; } });
|
|
23
27
|
var Remote_1 = require("./dht/contact/Remote");
|
|
24
28
|
Object.defineProperty(exports, "Remote", { enumerable: true, get: function () { return Remote_1.Remote; } });
|
|
29
|
+
Object.defineProperty(exports, "EXISTING_CONNECTION_TIMEOUT", { enumerable: true, get: function () { return Remote_1.EXISTING_CONNECTION_TIMEOUT; } });
|
|
25
30
|
var peerIdFromPeerDescriptor_1 = require("./helpers/peerIdFromPeerDescriptor");
|
|
26
31
|
Object.defineProperty(exports, "areEqualPeerDescriptors", { enumerable: true, get: function () { return peerIdFromPeerDescriptor_1.areEqualPeerDescriptors; } });
|
|
27
32
|
var DhtCallContext_1 = require("./rpc-protocol/DhtCallContext");
|
|
28
33
|
Object.defineProperty(exports, "DhtCallContext", { enumerable: true, get: function () { return DhtCallContext_1.DhtCallContext; } });
|
|
34
|
+
var ClientWebsocket_1 = require("./connection/websocket/ClientWebsocket");
|
|
35
|
+
Object.defineProperty(exports, "ClientWebsocket", { enumerable: true, get: function () { return ClientWebsocket_1.ClientWebsocket; } });
|
|
36
|
+
var ManagedConnection_1 = require("./connection/ManagedConnection");
|
|
37
|
+
Object.defineProperty(exports, "ManagedConnection", { enumerable: true, get: function () { return ManagedConnection_1.ManagedConnection; } });
|
|
38
|
+
var IConnection_1 = require("./connection/IConnection");
|
|
39
|
+
Object.defineProperty(exports, "ConnectionType", { enumerable: true, get: function () { return IConnection_1.ConnectionType; } });
|
|
40
|
+
var PeerID_1 = require("./helpers/PeerID");
|
|
41
|
+
Object.defineProperty(exports, "PeerID", { enumerable: true, get: function () { return PeerID_1.PeerID; } });
|
|
29
42
|
//# sourceMappingURL=exports.js.map
|
package/dist/src/exports.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":";;;AAAA,yCAAsE;AAA7D,kGAAA,OAAO,OAAA;AAChB,iFAA+E;AAAtE,oIAAA,wBAAwB,OAAA;AACjC,8DAAyE;AAAhE,sGAAA,SAAS,OAAA;AAAE,wGAAA,WAAW,OAAA;AAC/B,gFAA8E;AAArE,wHAAA,kBAAkB,OAAA;AAC3B,sDAAoF;AAA3E,wGAAA,eAAe,OAAA;AAAE,6GAAA,oBAAoB,OAAA;AAC9C,6DAAiG;AAAxF,wGAAA,cAAc,OAAA;AAAE,iGAAA,OAAO,OAAA;AAAE,kGAAA,QAAQ,OAAA;AAAE,mGAAA,SAAS,OAAA;AAErD,oEAA+G;AAAtG,sHAAA,iBAAiB,OAAA;
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":";;;AAAA,yCAAsE;AAA7D,kGAAA,OAAO,OAAA;AAChB,iFAA+E;AAAtE,oIAAA,wBAAwB,OAAA;AACjC,6EAA2E;AAAlE,gIAAA,sBAAsB,OAAA;AAC/B,8DAAyE;AAAhE,sGAAA,SAAS,OAAA;AAAE,wGAAA,WAAW,OAAA;AAC/B,gFAA8E;AAArE,wHAAA,kBAAkB,OAAA;AAC3B,sDAAoF;AAA3E,wGAAA,eAAe,OAAA;AAAE,6GAAA,oBAAoB,OAAA;AAC9C,6DAAiG;AAAxF,wGAAA,cAAc,OAAA;AAAE,iGAAA,OAAO,OAAA;AAAE,kGAAA,QAAQ,OAAA;AAAE,mGAAA,SAAS,OAAA;AAErD,oEAA+G;AAAtG,sHAAA,iBAAiB,OAAA;AAC1B,gEAAqE;AAA5D,yHAAA,sBAAsB,OAAA;AAE/B,+CAA0E;AAAjE,gGAAA,MAAM,OAAA;AAAE,qHAAA,2BAA2B,OAAA;AAC5C,+EAA4E;AAAnE,mIAAA,uBAAuB,OAAA;AAEhC,gEAA8D;AAArD,gHAAA,cAAc,OAAA;AACvB,0EAAwE;AAA/D,kHAAA,eAAe,OAAA;AACxB,oEAAkE;AAAzD,sHAAA,iBAAiB,OAAA;AAC1B,wDAAyD;AAAhD,6GAAA,cAAc,OAAA;AACvB,2CAAyC;AAAhC,gGAAA,MAAM,OAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ConnectionType } from '../connection/IConnection';
|
|
2
|
+
import { ConnectivityMethod, PeerDescriptor } from '../proto/packages/dht/protos/DhtRpc';
|
|
3
|
+
export declare const canOpenConnectionFromBrowser: (websocketServer: ConnectivityMethod) => boolean;
|
|
4
|
+
export declare const expectedConnectionType: (localPeerDescriptor: PeerDescriptor, remotePeerDescriptor: PeerDescriptor) => ConnectionType;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.expectedConnectionType = exports.canOpenConnectionFromBrowser = void 0;
|
|
4
|
+
const IConnection_1 = require("../connection/IConnection");
|
|
5
|
+
const DhtRpc_1 = require("../proto/packages/dht/protos/DhtRpc");
|
|
6
|
+
const AddressTools_1 = require("./AddressTools");
|
|
7
|
+
const canOpenConnectionFromBrowser = (websocketServer) => {
|
|
8
|
+
const hasPrivateAddress = ((websocketServer.host === 'localhost') || (0, AddressTools_1.isPrivateIPv4)(websocketServer.host));
|
|
9
|
+
return websocketServer.tls || hasPrivateAddress;
|
|
10
|
+
};
|
|
11
|
+
exports.canOpenConnectionFromBrowser = canOpenConnectionFromBrowser;
|
|
12
|
+
const expectedConnectionType = (localPeerDescriptor, remotePeerDescriptor) => {
|
|
13
|
+
if (remotePeerDescriptor.websocket
|
|
14
|
+
&& (localPeerDescriptor.type !== DhtRpc_1.NodeType.BROWSER || (0, exports.canOpenConnectionFromBrowser)(remotePeerDescriptor.websocket))) {
|
|
15
|
+
return IConnection_1.ConnectionType.WEBSOCKET_CLIENT;
|
|
16
|
+
}
|
|
17
|
+
else if (localPeerDescriptor.websocket
|
|
18
|
+
&& (remotePeerDescriptor.type !== DhtRpc_1.NodeType.BROWSER || (0, exports.canOpenConnectionFromBrowser)(localPeerDescriptor.websocket))) {
|
|
19
|
+
return IConnection_1.ConnectionType.WEBSOCKET_SERVER;
|
|
20
|
+
}
|
|
21
|
+
return IConnection_1.ConnectionType.WEBRTC;
|
|
22
|
+
};
|
|
23
|
+
exports.expectedConnectionType = expectedConnectionType;
|
|
24
|
+
//# sourceMappingURL=Connectivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Connectivity.js","sourceRoot":"","sources":["../../../src/helpers/Connectivity.ts"],"names":[],"mappings":";;;AAAA,2DAA0D;AAC1D,gEAAkG;AAClG,iDAA8C;AAEvC,MAAM,4BAA4B,GAAG,CAAC,eAAmC,EAAW,EAAE;IACzF,MAAM,iBAAiB,GAAG,CAAC,CAAC,eAAe,CAAC,IAAI,KAAK,WAAW,CAAC,IAAI,IAAA,4BAAa,EAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAA;IACzG,OAAO,eAAe,CAAC,GAAG,IAAI,iBAAiB,CAAA;AACnD,CAAC,CAAA;AAHY,QAAA,4BAA4B,gCAGxC;AAEM,MAAM,sBAAsB,GAAG,CAAC,mBAAmC,EAAE,oBAAoC,EAAkB,EAAE;IAChI,IAAI,oBAAoB,CAAC,SAAS;WAC3B,CAAC,mBAAmB,CAAC,IAAI,KAAK,iBAAQ,CAAC,OAAO,IAAI,IAAA,oCAA4B,EAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,EAAE;QACpH,OAAO,4BAAc,CAAC,gBAAgB,CAAA;KACzC;SAAM,IAAI,mBAAmB,CAAC,SAAS;WACjC,CAAC,oBAAoB,CAAC,IAAI,KAAK,iBAAQ,CAAC,OAAO,IAAI,IAAA,oCAA4B,EAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,EAAE;QACpH,OAAO,4BAAc,CAAC,gBAAgB,CAAA;KACzC;IACD,OAAO,4BAAc,CAAC,MAAM,CAAA;AAChC,CAAC,CAAA;AATY,QAAA,sBAAsB,0BASlC"}
|
|
@@ -27,10 +27,10 @@ export declare class ConnectionFailed extends Err {
|
|
|
27
27
|
export declare class CouldNotRoute extends Err {
|
|
28
28
|
constructor(message?: string, originalError?: Error | string);
|
|
29
29
|
}
|
|
30
|
-
export declare class
|
|
30
|
+
export declare class WebsocketServerStartError extends Err {
|
|
31
31
|
constructor(message?: string, originalError?: Error | string);
|
|
32
32
|
}
|
|
33
|
-
export declare class
|
|
33
|
+
export declare class WebsocketConnectionRequestRejected extends Err {
|
|
34
34
|
constructor(message?: string, originalError?: Error | string);
|
|
35
35
|
}
|
|
36
36
|
export declare class CouldNotStart extends Err {
|
|
@@ -45,7 +45,7 @@ export declare class CannotConnectToSelf extends Err {
|
|
|
45
45
|
export declare class NotImplemented extends Err {
|
|
46
46
|
constructor(message?: string, originalError?: Error | string);
|
|
47
47
|
}
|
|
48
|
-
export declare class
|
|
48
|
+
export declare class IllegalRtcPeerConnectionState extends Err {
|
|
49
49
|
constructor(message?: string, originalError?: Error | string);
|
|
50
50
|
}
|
|
51
51
|
export declare class IllegalArguments extends Err {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* eslint-disable max-len */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ConnectionNotOpen = exports.GettingDataFailed = exports.SendFailed = exports.DhtJoinTimeout = exports.ConnectionLocker = exports.ConnectivityResponseTimeout = exports.IllegalArguments = exports.
|
|
4
|
+
exports.ConnectionNotOpen = exports.GettingDataFailed = exports.SendFailed = exports.DhtJoinTimeout = exports.ConnectionLocker = exports.ConnectivityResponseTimeout = exports.IllegalArguments = exports.IllegalRtcPeerConnectionState = exports.NotImplemented = exports.CannotConnectToSelf = exports.CouldNotStop = exports.CouldNotStart = exports.WebsocketConnectionRequestRejected = exports.WebsocketServerStartError = exports.CouldNotRoute = exports.ConnectionFailed = exports.ErrorCode = void 0;
|
|
5
5
|
var ErrorCode;
|
|
6
6
|
(function (ErrorCode) {
|
|
7
7
|
ErrorCode["CONNECTION_FAILED"] = "CONNECTION_FAILED";
|
|
@@ -36,14 +36,14 @@ class CouldNotRoute extends Err {
|
|
|
36
36
|
constructor(message, originalError) { super(ErrorCode.COULD_NOT_ROUTE, message, originalError); }
|
|
37
37
|
}
|
|
38
38
|
exports.CouldNotRoute = CouldNotRoute;
|
|
39
|
-
class
|
|
39
|
+
class WebsocketServerStartError extends Err {
|
|
40
40
|
constructor(message, originalError) { super(ErrorCode.STARTING_WEBSOCKET_SERVER_FAILED, message, originalError); }
|
|
41
41
|
}
|
|
42
|
-
exports.
|
|
43
|
-
class
|
|
42
|
+
exports.WebsocketServerStartError = WebsocketServerStartError;
|
|
43
|
+
class WebsocketConnectionRequestRejected extends Err {
|
|
44
44
|
constructor(message, originalError) { super(ErrorCode.WEBSOCKET_CONNECTION_REQUEST_REJECTED, message, originalError); }
|
|
45
45
|
}
|
|
46
|
-
exports.
|
|
46
|
+
exports.WebsocketConnectionRequestRejected = WebsocketConnectionRequestRejected;
|
|
47
47
|
class CouldNotStart extends Err {
|
|
48
48
|
constructor(message, originalError) { super(ErrorCode.COULD_NOT_START, message, originalError); }
|
|
49
49
|
}
|
|
@@ -60,10 +60,10 @@ class NotImplemented extends Err {
|
|
|
60
60
|
constructor(message, originalError) { super(ErrorCode.NOT_IMPLEMENTED, message, originalError); }
|
|
61
61
|
}
|
|
62
62
|
exports.NotImplemented = NotImplemented;
|
|
63
|
-
class
|
|
63
|
+
class IllegalRtcPeerConnectionState extends Err {
|
|
64
64
|
constructor(message, originalError) { super(ErrorCode.ILLEGAL_RTC_PEER_CONNECTION_STATE, message, originalError); }
|
|
65
65
|
}
|
|
66
|
-
exports.
|
|
66
|
+
exports.IllegalRtcPeerConnectionState = IllegalRtcPeerConnectionState;
|
|
67
67
|
class IllegalArguments extends Err {
|
|
68
68
|
constructor(message, originalError) { super(ErrorCode.ILLEGAL_ARGUMENTS, message, originalError); }
|
|
69
69
|
}
|
|
@@ -20,9 +20,9 @@ exports.protoClasses = [
|
|
|
20
20
|
DhtRpc_1.HandshakeRequest,
|
|
21
21
|
DhtRpc_1.HandshakeResponse,
|
|
22
22
|
DhtRpc_1.Message,
|
|
23
|
-
DhtRpc_1.
|
|
24
|
-
DhtRpc_1.
|
|
25
|
-
DhtRpc_1.
|
|
23
|
+
DhtRpc_1.WebsocketConnectionRequest,
|
|
24
|
+
DhtRpc_1.WebsocketConnectionResponse,
|
|
25
|
+
DhtRpc_1.WebrtcConnectionRequest,
|
|
26
26
|
DhtRpc_1.RtcOffer,
|
|
27
27
|
DhtRpc_1.RtcAnswer,
|
|
28
28
|
DhtRpc_1.IceCandidate,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ExternalStoreDataResponse } from "./DhtRpc";
|
|
2
2
|
import type { ExternalStoreDataRequest } from "./DhtRpc";
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
3
|
+
import type { ExternalFindDataResponse } from "./DhtRpc";
|
|
4
|
+
import type { ExternalFindDataRequest } from "./DhtRpc";
|
|
5
5
|
import type { DisconnectNoticeResponse } from "./DhtRpc";
|
|
6
6
|
import type { DisconnectNotice } from "./DhtRpc";
|
|
7
7
|
import type { UnlockRequest } from "./DhtRpc";
|
|
@@ -10,9 +10,9 @@ import type { LockRequest } from "./DhtRpc";
|
|
|
10
10
|
import type { IceCandidate } from "./DhtRpc";
|
|
11
11
|
import type { RtcAnswer } from "./DhtRpc";
|
|
12
12
|
import type { RtcOffer } from "./DhtRpc";
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
15
|
-
import type {
|
|
13
|
+
import type { WebrtcConnectionRequest } from "./DhtRpc";
|
|
14
|
+
import type { WebsocketConnectionResponse } from "./DhtRpc";
|
|
15
|
+
import type { WebsocketConnectionRequest } from "./DhtRpc";
|
|
16
16
|
import type { FindResponse } from "./DhtRpc";
|
|
17
17
|
import type { DeleteDataResponse } from "./DhtRpc";
|
|
18
18
|
import type { DeleteDataRequest } from "./DhtRpc";
|
|
@@ -33,9 +33,9 @@ import type { ClosestPeersRequest } from "./DhtRpc";
|
|
|
33
33
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
34
34
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
35
35
|
/**
|
|
36
|
-
* @generated from protobuf service dht.
|
|
36
|
+
* @generated from protobuf service dht.DhtNodeRpc
|
|
37
37
|
*/
|
|
38
|
-
export interface
|
|
38
|
+
export interface IDhtNodeRpcClient {
|
|
39
39
|
/**
|
|
40
40
|
* @generated from protobuf rpc: getClosestPeers(dht.ClosestPeersRequest) returns (dht.ClosestPeersResponse);
|
|
41
41
|
*/
|
|
@@ -50,9 +50,9 @@ export interface IDhtRpcServiceClient {
|
|
|
50
50
|
leaveNotice(input: LeaveNotice, options?: RpcOptions): UnaryCall<LeaveNotice, Empty>;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* @generated from protobuf service dht.
|
|
53
|
+
* @generated from protobuf service dht.DhtNodeRpc
|
|
54
54
|
*/
|
|
55
|
-
export declare class
|
|
55
|
+
export declare class DhtNodeRpcClient implements IDhtNodeRpcClient, ServiceInfo {
|
|
56
56
|
private readonly _transport;
|
|
57
57
|
typeName: string;
|
|
58
58
|
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
@@ -85,10 +85,6 @@ export interface IRouterRpcClient {
|
|
|
85
85
|
* @generated from protobuf rpc: forwardMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
86
86
|
*/
|
|
87
87
|
forwardMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
|
|
88
|
-
/**
|
|
89
|
-
* @generated from protobuf rpc: findRecursively(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
90
|
-
*/
|
|
91
|
-
findRecursively(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
|
|
92
88
|
}
|
|
93
89
|
/**
|
|
94
90
|
* @generated from protobuf service dht.RouterRpc
|
|
@@ -109,10 +105,31 @@ export declare class RouterRpcClient implements IRouterRpcClient, ServiceInfo {
|
|
|
109
105
|
* @generated from protobuf rpc: forwardMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
110
106
|
*/
|
|
111
107
|
forwardMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* @generated from protobuf service dht.FindRpc
|
|
111
|
+
*/
|
|
112
|
+
export interface IFindRpcClient {
|
|
113
|
+
/**
|
|
114
|
+
* @generated from protobuf rpc: routeFindRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
115
|
+
*/
|
|
116
|
+
routeFindRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @generated from protobuf service dht.FindRpc
|
|
120
|
+
*/
|
|
121
|
+
export declare class FindRpcClient implements IFindRpcClient, ServiceInfo {
|
|
122
|
+
private readonly _transport;
|
|
123
|
+
typeName: string;
|
|
124
|
+
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
125
|
+
options: {
|
|
126
|
+
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
127
|
+
};
|
|
128
|
+
constructor(_transport: RpcTransport);
|
|
112
129
|
/**
|
|
113
|
-
* @generated from protobuf rpc:
|
|
130
|
+
* @generated from protobuf rpc: routeFindRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
114
131
|
*/
|
|
115
|
-
|
|
132
|
+
routeFindRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
|
|
116
133
|
}
|
|
117
134
|
/**
|
|
118
135
|
* @generated from protobuf service dht.StoreRpc
|
|
@@ -156,18 +173,18 @@ export declare class StoreRpcClient implements IStoreRpcClient, ServiceInfo {
|
|
|
156
173
|
deleteData(input: DeleteDataRequest, options?: RpcOptions): UnaryCall<DeleteDataRequest, DeleteDataResponse>;
|
|
157
174
|
}
|
|
158
175
|
/**
|
|
159
|
-
* @generated from protobuf service dht.
|
|
176
|
+
* @generated from protobuf service dht.FindSessionRpc
|
|
160
177
|
*/
|
|
161
|
-
export interface
|
|
178
|
+
export interface IFindSessionRpcClient {
|
|
162
179
|
/**
|
|
163
180
|
* @generated from protobuf rpc: sendFindResponse(dht.FindResponse) returns (google.protobuf.Empty);
|
|
164
181
|
*/
|
|
165
182
|
sendFindResponse(input: FindResponse, options?: RpcOptions): UnaryCall<FindResponse, Empty>;
|
|
166
183
|
}
|
|
167
184
|
/**
|
|
168
|
-
* @generated from protobuf service dht.
|
|
185
|
+
* @generated from protobuf service dht.FindSessionRpc
|
|
169
186
|
*/
|
|
170
|
-
export declare class
|
|
187
|
+
export declare class FindSessionRpcClient implements IFindSessionRpcClient, ServiceInfo {
|
|
171
188
|
private readonly _transport;
|
|
172
189
|
typeName: string;
|
|
173
190
|
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
@@ -181,18 +198,18 @@ export declare class RecursiveFindSessionServiceClient implements IRecursiveFind
|
|
|
181
198
|
sendFindResponse(input: FindResponse, options?: RpcOptions): UnaryCall<FindResponse, Empty>;
|
|
182
199
|
}
|
|
183
200
|
/**
|
|
184
|
-
* @generated from protobuf service dht.
|
|
201
|
+
* @generated from protobuf service dht.WebsocketConnectorRpc
|
|
185
202
|
*/
|
|
186
|
-
export interface
|
|
203
|
+
export interface IWebsocketConnectorRpcClient {
|
|
187
204
|
/**
|
|
188
|
-
* @generated from protobuf rpc: requestConnection(dht.
|
|
205
|
+
* @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (dht.WebsocketConnectionResponse);
|
|
189
206
|
*/
|
|
190
|
-
requestConnection(input:
|
|
207
|
+
requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, WebsocketConnectionResponse>;
|
|
191
208
|
}
|
|
192
209
|
/**
|
|
193
|
-
* @generated from protobuf service dht.
|
|
210
|
+
* @generated from protobuf service dht.WebsocketConnectorRpc
|
|
194
211
|
*/
|
|
195
|
-
export declare class
|
|
212
|
+
export declare class WebsocketConnectorRpcClient implements IWebsocketConnectorRpcClient, ServiceInfo {
|
|
196
213
|
private readonly _transport;
|
|
197
214
|
typeName: string;
|
|
198
215
|
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
@@ -201,18 +218,18 @@ export declare class WebSocketConnectorRpcClient implements IWebSocketConnectorR
|
|
|
201
218
|
};
|
|
202
219
|
constructor(_transport: RpcTransport);
|
|
203
220
|
/**
|
|
204
|
-
* @generated from protobuf rpc: requestConnection(dht.
|
|
221
|
+
* @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (dht.WebsocketConnectionResponse);
|
|
205
222
|
*/
|
|
206
|
-
requestConnection(input:
|
|
223
|
+
requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, WebsocketConnectionResponse>;
|
|
207
224
|
}
|
|
208
225
|
/**
|
|
209
|
-
* @generated from protobuf service dht.
|
|
226
|
+
* @generated from protobuf service dht.WebrtcConnectorRpc
|
|
210
227
|
*/
|
|
211
|
-
export interface
|
|
228
|
+
export interface IWebrtcConnectorRpcClient {
|
|
212
229
|
/**
|
|
213
|
-
* @generated from protobuf rpc: requestConnection(dht.
|
|
230
|
+
* @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
|
|
214
231
|
*/
|
|
215
|
-
requestConnection(input:
|
|
232
|
+
requestConnection(input: WebrtcConnectionRequest, options?: RpcOptions): UnaryCall<WebrtcConnectionRequest, Empty>;
|
|
216
233
|
/**
|
|
217
234
|
* @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
|
|
218
235
|
*/
|
|
@@ -227,9 +244,9 @@ export interface IWebRtcConnectorRpcClient {
|
|
|
227
244
|
iceCandidate(input: IceCandidate, options?: RpcOptions): UnaryCall<IceCandidate, Empty>;
|
|
228
245
|
}
|
|
229
246
|
/**
|
|
230
|
-
* @generated from protobuf service dht.
|
|
247
|
+
* @generated from protobuf service dht.WebrtcConnectorRpc
|
|
231
248
|
*/
|
|
232
|
-
export declare class
|
|
249
|
+
export declare class WebrtcConnectorRpcClient implements IWebrtcConnectorRpcClient, ServiceInfo {
|
|
233
250
|
private readonly _transport;
|
|
234
251
|
typeName: string;
|
|
235
252
|
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
@@ -238,9 +255,9 @@ export declare class WebRtcConnectorRpcClient implements IWebRtcConnectorRpcClie
|
|
|
238
255
|
};
|
|
239
256
|
constructor(_transport: RpcTransport);
|
|
240
257
|
/**
|
|
241
|
-
* @generated from protobuf rpc: requestConnection(dht.
|
|
258
|
+
* @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
|
|
242
259
|
*/
|
|
243
|
-
requestConnection(input:
|
|
260
|
+
requestConnection(input: WebrtcConnectionRequest, options?: RpcOptions): UnaryCall<WebrtcConnectionRequest, Empty>;
|
|
244
261
|
/**
|
|
245
262
|
* @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
|
|
246
263
|
*/
|
|
@@ -300,9 +317,9 @@ export declare class ConnectionLockRpcClient implements IConnectionLockRpcClient
|
|
|
300
317
|
*/
|
|
301
318
|
export interface IExternalApiRpcClient {
|
|
302
319
|
/**
|
|
303
|
-
* @generated from protobuf rpc:
|
|
320
|
+
* @generated from protobuf rpc: externalFindData(dht.ExternalFindDataRequest) returns (dht.ExternalFindDataResponse);
|
|
304
321
|
*/
|
|
305
|
-
|
|
322
|
+
externalFindData(input: ExternalFindDataRequest, options?: RpcOptions): UnaryCall<ExternalFindDataRequest, ExternalFindDataResponse>;
|
|
306
323
|
/**
|
|
307
324
|
* @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
|
|
308
325
|
*/
|
|
@@ -320,9 +337,9 @@ export declare class ExternalApiRpcClient implements IExternalApiRpcClient, Serv
|
|
|
320
337
|
};
|
|
321
338
|
constructor(_transport: RpcTransport);
|
|
322
339
|
/**
|
|
323
|
-
* @generated from protobuf rpc:
|
|
340
|
+
* @generated from protobuf rpc: externalFindData(dht.ExternalFindDataRequest) returns (dht.ExternalFindDataResponse);
|
|
324
341
|
*/
|
|
325
|
-
|
|
342
|
+
externalFindData(input: ExternalFindDataRequest, options?: RpcOptions): UnaryCall<ExternalFindDataRequest, ExternalFindDataResponse>;
|
|
326
343
|
/**
|
|
327
344
|
* @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
|
|
328
345
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExternalApiRpcClient = exports.ConnectionLockRpcClient = exports.
|
|
3
|
+
exports.ExternalApiRpcClient = exports.ConnectionLockRpcClient = exports.WebrtcConnectorRpcClient = exports.WebsocketConnectorRpcClient = exports.FindSessionRpcClient = exports.StoreRpcClient = exports.FindRpcClient = exports.RouterRpcClient = exports.DhtNodeRpcClient = void 0;
|
|
4
4
|
// @generated by protobuf-ts 2.9.1 with parameter server_generic,generate_dependencies,long_type_number
|
|
5
5
|
// @generated from protobuf file "packages/dht/protos/DhtRpc.proto" (package "dht", syntax proto3)
|
|
6
6
|
// tslint:disable
|
|
@@ -12,16 +12,17 @@ const DhtRpc_5 = require("./DhtRpc");
|
|
|
12
12
|
const DhtRpc_6 = require("./DhtRpc");
|
|
13
13
|
const DhtRpc_7 = require("./DhtRpc");
|
|
14
14
|
const DhtRpc_8 = require("./DhtRpc");
|
|
15
|
+
const DhtRpc_9 = require("./DhtRpc");
|
|
15
16
|
const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
|
|
16
17
|
/**
|
|
17
|
-
* @generated from protobuf service dht.
|
|
18
|
+
* @generated from protobuf service dht.DhtNodeRpc
|
|
18
19
|
*/
|
|
19
|
-
class
|
|
20
|
+
class DhtNodeRpcClient {
|
|
20
21
|
constructor(_transport) {
|
|
21
22
|
this._transport = _transport;
|
|
22
|
-
this.typeName =
|
|
23
|
-
this.methods =
|
|
24
|
-
this.options =
|
|
23
|
+
this.typeName = DhtRpc_9.DhtNodeRpc.typeName;
|
|
24
|
+
this.methods = DhtRpc_9.DhtNodeRpc.methods;
|
|
25
|
+
this.options = DhtRpc_9.DhtNodeRpc.options;
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
27
28
|
* @generated from protobuf rpc: getClosestPeers(dht.ClosestPeersRequest) returns (dht.ClosestPeersResponse);
|
|
@@ -45,16 +46,16 @@ class DhtRpcServiceClient {
|
|
|
45
46
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
|
-
exports.
|
|
49
|
+
exports.DhtNodeRpcClient = DhtNodeRpcClient;
|
|
49
50
|
/**
|
|
50
51
|
* @generated from protobuf service dht.RouterRpc
|
|
51
52
|
*/
|
|
52
53
|
class RouterRpcClient {
|
|
53
54
|
constructor(_transport) {
|
|
54
55
|
this._transport = _transport;
|
|
55
|
-
this.typeName =
|
|
56
|
-
this.methods =
|
|
57
|
-
this.options =
|
|
56
|
+
this.typeName = DhtRpc_8.RouterRpc.typeName;
|
|
57
|
+
this.methods = DhtRpc_8.RouterRpc.methods;
|
|
58
|
+
this.options = DhtRpc_8.RouterRpc.options;
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
@@ -70,15 +71,27 @@ class RouterRpcClient {
|
|
|
70
71
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
71
72
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
72
73
|
}
|
|
74
|
+
}
|
|
75
|
+
exports.RouterRpcClient = RouterRpcClient;
|
|
76
|
+
/**
|
|
77
|
+
* @generated from protobuf service dht.FindRpc
|
|
78
|
+
*/
|
|
79
|
+
class FindRpcClient {
|
|
80
|
+
constructor(_transport) {
|
|
81
|
+
this._transport = _transport;
|
|
82
|
+
this.typeName = DhtRpc_7.FindRpc.typeName;
|
|
83
|
+
this.methods = DhtRpc_7.FindRpc.methods;
|
|
84
|
+
this.options = DhtRpc_7.FindRpc.options;
|
|
85
|
+
}
|
|
73
86
|
/**
|
|
74
|
-
* @generated from protobuf rpc:
|
|
87
|
+
* @generated from protobuf rpc: routeFindRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
75
88
|
*/
|
|
76
|
-
|
|
77
|
-
const method = this.methods[
|
|
89
|
+
routeFindRequest(input, options) {
|
|
90
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
78
91
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
79
92
|
}
|
|
80
93
|
}
|
|
81
|
-
exports.
|
|
94
|
+
exports.FindRpcClient = FindRpcClient;
|
|
82
95
|
/**
|
|
83
96
|
* @generated from protobuf service dht.StoreRpc
|
|
84
97
|
*/
|
|
@@ -113,14 +126,14 @@ class StoreRpcClient {
|
|
|
113
126
|
}
|
|
114
127
|
exports.StoreRpcClient = StoreRpcClient;
|
|
115
128
|
/**
|
|
116
|
-
* @generated from protobuf service dht.
|
|
129
|
+
* @generated from protobuf service dht.FindSessionRpc
|
|
117
130
|
*/
|
|
118
|
-
class
|
|
131
|
+
class FindSessionRpcClient {
|
|
119
132
|
constructor(_transport) {
|
|
120
133
|
this._transport = _transport;
|
|
121
|
-
this.typeName = DhtRpc_5.
|
|
122
|
-
this.methods = DhtRpc_5.
|
|
123
|
-
this.options = DhtRpc_5.
|
|
134
|
+
this.typeName = DhtRpc_5.FindSessionRpc.typeName;
|
|
135
|
+
this.methods = DhtRpc_5.FindSessionRpc.methods;
|
|
136
|
+
this.options = DhtRpc_5.FindSessionRpc.options;
|
|
124
137
|
}
|
|
125
138
|
/**
|
|
126
139
|
* @generated from protobuf rpc: sendFindResponse(dht.FindResponse) returns (google.protobuf.Empty);
|
|
@@ -130,38 +143,38 @@ class RecursiveFindSessionServiceClient {
|
|
|
130
143
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
131
144
|
}
|
|
132
145
|
}
|
|
133
|
-
exports.
|
|
146
|
+
exports.FindSessionRpcClient = FindSessionRpcClient;
|
|
134
147
|
/**
|
|
135
|
-
* @generated from protobuf service dht.
|
|
148
|
+
* @generated from protobuf service dht.WebsocketConnectorRpc
|
|
136
149
|
*/
|
|
137
|
-
class
|
|
150
|
+
class WebsocketConnectorRpcClient {
|
|
138
151
|
constructor(_transport) {
|
|
139
152
|
this._transport = _transport;
|
|
140
|
-
this.typeName = DhtRpc_4.
|
|
141
|
-
this.methods = DhtRpc_4.
|
|
142
|
-
this.options = DhtRpc_4.
|
|
153
|
+
this.typeName = DhtRpc_4.WebsocketConnectorRpc.typeName;
|
|
154
|
+
this.methods = DhtRpc_4.WebsocketConnectorRpc.methods;
|
|
155
|
+
this.options = DhtRpc_4.WebsocketConnectorRpc.options;
|
|
143
156
|
}
|
|
144
157
|
/**
|
|
145
|
-
* @generated from protobuf rpc: requestConnection(dht.
|
|
158
|
+
* @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (dht.WebsocketConnectionResponse);
|
|
146
159
|
*/
|
|
147
160
|
requestConnection(input, options) {
|
|
148
161
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
149
162
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
150
163
|
}
|
|
151
164
|
}
|
|
152
|
-
exports.
|
|
165
|
+
exports.WebsocketConnectorRpcClient = WebsocketConnectorRpcClient;
|
|
153
166
|
/**
|
|
154
|
-
* @generated from protobuf service dht.
|
|
167
|
+
* @generated from protobuf service dht.WebrtcConnectorRpc
|
|
155
168
|
*/
|
|
156
|
-
class
|
|
169
|
+
class WebrtcConnectorRpcClient {
|
|
157
170
|
constructor(_transport) {
|
|
158
171
|
this._transport = _transport;
|
|
159
|
-
this.typeName = DhtRpc_3.
|
|
160
|
-
this.methods = DhtRpc_3.
|
|
161
|
-
this.options = DhtRpc_3.
|
|
172
|
+
this.typeName = DhtRpc_3.WebrtcConnectorRpc.typeName;
|
|
173
|
+
this.methods = DhtRpc_3.WebrtcConnectorRpc.methods;
|
|
174
|
+
this.options = DhtRpc_3.WebrtcConnectorRpc.options;
|
|
162
175
|
}
|
|
163
176
|
/**
|
|
164
|
-
* @generated from protobuf rpc: requestConnection(dht.
|
|
177
|
+
* @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
|
|
165
178
|
*/
|
|
166
179
|
requestConnection(input, options) {
|
|
167
180
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
@@ -189,7 +202,7 @@ class WebRtcConnectorRpcClient {
|
|
|
189
202
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
190
203
|
}
|
|
191
204
|
}
|
|
192
|
-
exports.
|
|
205
|
+
exports.WebrtcConnectorRpcClient = WebrtcConnectorRpcClient;
|
|
193
206
|
/**
|
|
194
207
|
* @generated from protobuf service dht.ConnectionLockRpc
|
|
195
208
|
*/
|
|
@@ -234,9 +247,9 @@ class ExternalApiRpcClient {
|
|
|
234
247
|
this.options = DhtRpc_1.ExternalApiRpc.options;
|
|
235
248
|
}
|
|
236
249
|
/**
|
|
237
|
-
* @generated from protobuf rpc:
|
|
250
|
+
* @generated from protobuf rpc: externalFindData(dht.ExternalFindDataRequest) returns (dht.ExternalFindDataResponse);
|
|
238
251
|
*/
|
|
239
|
-
|
|
252
|
+
externalFindData(input, options) {
|
|
240
253
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
241
254
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
242
255
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DhtRpc.client.js","sourceRoot":"","sources":["../../../../../../src/proto/packages/dht/protos/DhtRpc.client.ts"],"names":[],"mappings":";;;AAAA,uGAAuG;AACvG,kGAAkG;AAClG,iBAAiB;AACjB,qCAA0C;AAK1C,qCAA6C;AAM7C,qCAA8C;AAK9C,qCAAiD;AAGjD,
|
|
1
|
+
{"version":3,"file":"DhtRpc.client.js","sourceRoot":"","sources":["../../../../../../src/proto/packages/dht/protos/DhtRpc.client.ts"],"names":[],"mappings":";;;AAAA,uGAAuG;AACvG,kGAAkG;AAClG,iBAAiB;AACjB,qCAA0C;AAK1C,qCAA6C;AAM7C,qCAA8C;AAK9C,qCAAiD;AAGjD,qCAA0C;AAE1C,qCAAoC;AAOpC,qCAAmC;AACnC,qCAAqC;AAKrC,qCAAsC;AAKtC,0DAA0D;AAsB1D;;GAEG;AACH,MAAa,gBAAgB;IAIzB,YAA6B,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;QAHrD,aAAQ,GAAG,mBAAU,CAAC,QAAQ,CAAC;QAC/B,YAAO,GAAG,mBAAU,CAAC,OAAO,CAAC;QAC7B,YAAO,GAAG,mBAAU,CAAC,OAAO,CAAC;IAE7B,CAAC;IACD;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