@streamr/dht 100.0.0-pretestnet.0 → 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} +108 -102
- 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} +18 -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} +51 -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 +48 -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 +5 -1
- package/dist/src/transport/ListeningRpcCommunicator.js +8 -2
- 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} +110 -101
- 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} +26 -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} +78 -71
- package/src/dht/routing/FindRpcRemote.ts +40 -0
- package/src/dht/routing/Router.ts +70 -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 +14 -4
- 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
|
@@ -4,23 +4,23 @@
|
|
|
4
4
|
import { ExternalApiRpc } from "./DhtRpc";
|
|
5
5
|
import type { ExternalStoreDataResponse } from "./DhtRpc";
|
|
6
6
|
import type { ExternalStoreDataRequest } from "./DhtRpc";
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
7
|
+
import type { ExternalFindDataResponse } from "./DhtRpc";
|
|
8
|
+
import type { ExternalFindDataRequest } from "./DhtRpc";
|
|
9
9
|
import { ConnectionLockRpc } from "./DhtRpc";
|
|
10
10
|
import type { DisconnectNoticeResponse } from "./DhtRpc";
|
|
11
11
|
import type { DisconnectNotice } from "./DhtRpc";
|
|
12
12
|
import type { UnlockRequest } from "./DhtRpc";
|
|
13
13
|
import type { LockResponse } from "./DhtRpc";
|
|
14
14
|
import type { LockRequest } from "./DhtRpc";
|
|
15
|
-
import {
|
|
15
|
+
import { WebrtcConnectorRpc } from "./DhtRpc";
|
|
16
16
|
import type { IceCandidate } from "./DhtRpc";
|
|
17
17
|
import type { RtcAnswer } from "./DhtRpc";
|
|
18
18
|
import type { RtcOffer } from "./DhtRpc";
|
|
19
|
-
import type {
|
|
20
|
-
import {
|
|
21
|
-
import type {
|
|
22
|
-
import type {
|
|
23
|
-
import {
|
|
19
|
+
import type { WebrtcConnectionRequest } from "./DhtRpc";
|
|
20
|
+
import { WebsocketConnectorRpc } from "./DhtRpc";
|
|
21
|
+
import type { WebsocketConnectionResponse } from "./DhtRpc";
|
|
22
|
+
import type { WebsocketConnectionRequest } from "./DhtRpc";
|
|
23
|
+
import { FindSessionRpc } from "./DhtRpc";
|
|
24
24
|
import type { FindResponse } from "./DhtRpc";
|
|
25
25
|
import { StoreRpc } from "./DhtRpc";
|
|
26
26
|
import type { DeleteDataResponse } from "./DhtRpc";
|
|
@@ -29,12 +29,13 @@ import type { MigrateDataResponse } from "./DhtRpc";
|
|
|
29
29
|
import type { MigrateDataRequest } from "./DhtRpc";
|
|
30
30
|
import type { StoreDataResponse } from "./DhtRpc";
|
|
31
31
|
import type { StoreDataRequest } from "./DhtRpc";
|
|
32
|
+
import { FindRpc } from "./DhtRpc";
|
|
32
33
|
import { RouterRpc } from "./DhtRpc";
|
|
33
34
|
import type { RouteMessageAck } from "./DhtRpc";
|
|
34
35
|
import type { RouteMessageWrapper } from "./DhtRpc";
|
|
35
36
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
36
37
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
37
|
-
import {
|
|
38
|
+
import { DhtNodeRpc } from "./DhtRpc";
|
|
38
39
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
39
40
|
import type { LeaveNotice } from "./DhtRpc";
|
|
40
41
|
import type { PingResponse } from "./DhtRpc";
|
|
@@ -45,9 +46,9 @@ import type { ClosestPeersRequest } from "./DhtRpc";
|
|
|
45
46
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
46
47
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
47
48
|
/**
|
|
48
|
-
* @generated from protobuf service dht.
|
|
49
|
+
* @generated from protobuf service dht.DhtNodeRpc
|
|
49
50
|
*/
|
|
50
|
-
export interface
|
|
51
|
+
export interface IDhtNodeRpcClient {
|
|
51
52
|
/**
|
|
52
53
|
* @generated from protobuf rpc: getClosestPeers(dht.ClosestPeersRequest) returns (dht.ClosestPeersResponse);
|
|
53
54
|
*/
|
|
@@ -62,12 +63,12 @@ export interface IDhtRpcServiceClient {
|
|
|
62
63
|
leaveNotice(input: LeaveNotice, options?: RpcOptions): UnaryCall<LeaveNotice, Empty>;
|
|
63
64
|
}
|
|
64
65
|
/**
|
|
65
|
-
* @generated from protobuf service dht.
|
|
66
|
+
* @generated from protobuf service dht.DhtNodeRpc
|
|
66
67
|
*/
|
|
67
|
-
export class
|
|
68
|
-
typeName =
|
|
69
|
-
methods =
|
|
70
|
-
options =
|
|
68
|
+
export class DhtNodeRpcClient implements IDhtNodeRpcClient, ServiceInfo {
|
|
69
|
+
typeName = DhtNodeRpc.typeName;
|
|
70
|
+
methods = DhtNodeRpc.methods;
|
|
71
|
+
options = DhtNodeRpc.options;
|
|
71
72
|
constructor(private readonly _transport: RpcTransport) {
|
|
72
73
|
}
|
|
73
74
|
/**
|
|
@@ -104,10 +105,6 @@ export interface IRouterRpcClient {
|
|
|
104
105
|
* @generated from protobuf rpc: forwardMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
105
106
|
*/
|
|
106
107
|
forwardMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
|
|
107
|
-
/**
|
|
108
|
-
* @generated from protobuf rpc: findRecursively(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
109
|
-
*/
|
|
110
|
-
findRecursively(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
|
|
111
108
|
}
|
|
112
109
|
/**
|
|
113
110
|
* @generated from protobuf service dht.RouterRpc
|
|
@@ -132,11 +129,30 @@ export class RouterRpcClient implements IRouterRpcClient, ServiceInfo {
|
|
|
132
129
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
133
130
|
return stackIntercept<RouteMessageWrapper, RouteMessageAck>("unary", this._transport, method, opt, input);
|
|
134
131
|
}
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @generated from protobuf service dht.FindRpc
|
|
135
|
+
*/
|
|
136
|
+
export interface IFindRpcClient {
|
|
135
137
|
/**
|
|
136
|
-
* @generated from protobuf rpc:
|
|
138
|
+
* @generated from protobuf rpc: routeFindRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
137
139
|
*/
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
routeFindRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* @generated from protobuf service dht.FindRpc
|
|
144
|
+
*/
|
|
145
|
+
export class FindRpcClient implements IFindRpcClient, ServiceInfo {
|
|
146
|
+
typeName = FindRpc.typeName;
|
|
147
|
+
methods = FindRpc.methods;
|
|
148
|
+
options = FindRpc.options;
|
|
149
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* @generated from protobuf rpc: routeFindRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
153
|
+
*/
|
|
154
|
+
routeFindRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck> {
|
|
155
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
140
156
|
return stackIntercept<RouteMessageWrapper, RouteMessageAck>("unary", this._transport, method, opt, input);
|
|
141
157
|
}
|
|
142
158
|
}
|
|
@@ -189,21 +205,21 @@ export class StoreRpcClient implements IStoreRpcClient, ServiceInfo {
|
|
|
189
205
|
}
|
|
190
206
|
}
|
|
191
207
|
/**
|
|
192
|
-
* @generated from protobuf service dht.
|
|
208
|
+
* @generated from protobuf service dht.FindSessionRpc
|
|
193
209
|
*/
|
|
194
|
-
export interface
|
|
210
|
+
export interface IFindSessionRpcClient {
|
|
195
211
|
/**
|
|
196
212
|
* @generated from protobuf rpc: sendFindResponse(dht.FindResponse) returns (google.protobuf.Empty);
|
|
197
213
|
*/
|
|
198
214
|
sendFindResponse(input: FindResponse, options?: RpcOptions): UnaryCall<FindResponse, Empty>;
|
|
199
215
|
}
|
|
200
216
|
/**
|
|
201
|
-
* @generated from protobuf service dht.
|
|
217
|
+
* @generated from protobuf service dht.FindSessionRpc
|
|
202
218
|
*/
|
|
203
|
-
export class
|
|
204
|
-
typeName =
|
|
205
|
-
methods =
|
|
206
|
-
options =
|
|
219
|
+
export class FindSessionRpcClient implements IFindSessionRpcClient, ServiceInfo {
|
|
220
|
+
typeName = FindSessionRpc.typeName;
|
|
221
|
+
methods = FindSessionRpc.methods;
|
|
222
|
+
options = FindSessionRpc.options;
|
|
207
223
|
constructor(private readonly _transport: RpcTransport) {
|
|
208
224
|
}
|
|
209
225
|
/**
|
|
@@ -215,39 +231,39 @@ export class RecursiveFindSessionServiceClient implements IRecursiveFindSessionS
|
|
|
215
231
|
}
|
|
216
232
|
}
|
|
217
233
|
/**
|
|
218
|
-
* @generated from protobuf service dht.
|
|
234
|
+
* @generated from protobuf service dht.WebsocketConnectorRpc
|
|
219
235
|
*/
|
|
220
|
-
export interface
|
|
236
|
+
export interface IWebsocketConnectorRpcClient {
|
|
221
237
|
/**
|
|
222
|
-
* @generated from protobuf rpc: requestConnection(dht.
|
|
238
|
+
* @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (dht.WebsocketConnectionResponse);
|
|
223
239
|
*/
|
|
224
|
-
requestConnection(input:
|
|
240
|
+
requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, WebsocketConnectionResponse>;
|
|
225
241
|
}
|
|
226
242
|
/**
|
|
227
|
-
* @generated from protobuf service dht.
|
|
243
|
+
* @generated from protobuf service dht.WebsocketConnectorRpc
|
|
228
244
|
*/
|
|
229
|
-
export class
|
|
230
|
-
typeName =
|
|
231
|
-
methods =
|
|
232
|
-
options =
|
|
245
|
+
export class WebsocketConnectorRpcClient implements IWebsocketConnectorRpcClient, ServiceInfo {
|
|
246
|
+
typeName = WebsocketConnectorRpc.typeName;
|
|
247
|
+
methods = WebsocketConnectorRpc.methods;
|
|
248
|
+
options = WebsocketConnectorRpc.options;
|
|
233
249
|
constructor(private readonly _transport: RpcTransport) {
|
|
234
250
|
}
|
|
235
251
|
/**
|
|
236
|
-
* @generated from protobuf rpc: requestConnection(dht.
|
|
252
|
+
* @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (dht.WebsocketConnectionResponse);
|
|
237
253
|
*/
|
|
238
|
-
requestConnection(input:
|
|
254
|
+
requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, WebsocketConnectionResponse> {
|
|
239
255
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
240
|
-
return stackIntercept<
|
|
256
|
+
return stackIntercept<WebsocketConnectionRequest, WebsocketConnectionResponse>("unary", this._transport, method, opt, input);
|
|
241
257
|
}
|
|
242
258
|
}
|
|
243
259
|
/**
|
|
244
|
-
* @generated from protobuf service dht.
|
|
260
|
+
* @generated from protobuf service dht.WebrtcConnectorRpc
|
|
245
261
|
*/
|
|
246
|
-
export interface
|
|
262
|
+
export interface IWebrtcConnectorRpcClient {
|
|
247
263
|
/**
|
|
248
|
-
* @generated from protobuf rpc: requestConnection(dht.
|
|
264
|
+
* @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
|
|
249
265
|
*/
|
|
250
|
-
requestConnection(input:
|
|
266
|
+
requestConnection(input: WebrtcConnectionRequest, options?: RpcOptions): UnaryCall<WebrtcConnectionRequest, Empty>;
|
|
251
267
|
/**
|
|
252
268
|
* @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
|
|
253
269
|
*/
|
|
@@ -262,20 +278,20 @@ export interface IWebRtcConnectorRpcClient {
|
|
|
262
278
|
iceCandidate(input: IceCandidate, options?: RpcOptions): UnaryCall<IceCandidate, Empty>;
|
|
263
279
|
}
|
|
264
280
|
/**
|
|
265
|
-
* @generated from protobuf service dht.
|
|
281
|
+
* @generated from protobuf service dht.WebrtcConnectorRpc
|
|
266
282
|
*/
|
|
267
|
-
export class
|
|
268
|
-
typeName =
|
|
269
|
-
methods =
|
|
270
|
-
options =
|
|
283
|
+
export class WebrtcConnectorRpcClient implements IWebrtcConnectorRpcClient, ServiceInfo {
|
|
284
|
+
typeName = WebrtcConnectorRpc.typeName;
|
|
285
|
+
methods = WebrtcConnectorRpc.methods;
|
|
286
|
+
options = WebrtcConnectorRpc.options;
|
|
271
287
|
constructor(private readonly _transport: RpcTransport) {
|
|
272
288
|
}
|
|
273
289
|
/**
|
|
274
|
-
* @generated from protobuf rpc: requestConnection(dht.
|
|
290
|
+
* @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
|
|
275
291
|
*/
|
|
276
|
-
requestConnection(input:
|
|
292
|
+
requestConnection(input: WebrtcConnectionRequest, options?: RpcOptions): UnaryCall<WebrtcConnectionRequest, Empty> {
|
|
277
293
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
278
|
-
return stackIntercept<
|
|
294
|
+
return stackIntercept<WebrtcConnectionRequest, Empty>("unary", this._transport, method, opt, input);
|
|
279
295
|
}
|
|
280
296
|
/**
|
|
281
297
|
* @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
|
|
@@ -352,9 +368,9 @@ export class ConnectionLockRpcClient implements IConnectionLockRpcClient, Servic
|
|
|
352
368
|
*/
|
|
353
369
|
export interface IExternalApiRpcClient {
|
|
354
370
|
/**
|
|
355
|
-
* @generated from protobuf rpc:
|
|
371
|
+
* @generated from protobuf rpc: externalFindData(dht.ExternalFindDataRequest) returns (dht.ExternalFindDataResponse);
|
|
356
372
|
*/
|
|
357
|
-
|
|
373
|
+
externalFindData(input: ExternalFindDataRequest, options?: RpcOptions): UnaryCall<ExternalFindDataRequest, ExternalFindDataResponse>;
|
|
358
374
|
/**
|
|
359
375
|
* @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
|
|
360
376
|
*/
|
|
@@ -370,11 +386,11 @@ export class ExternalApiRpcClient implements IExternalApiRpcClient, ServiceInfo
|
|
|
370
386
|
constructor(private readonly _transport: RpcTransport) {
|
|
371
387
|
}
|
|
372
388
|
/**
|
|
373
|
-
* @generated from protobuf rpc:
|
|
389
|
+
* @generated from protobuf rpc: externalFindData(dht.ExternalFindDataRequest) returns (dht.ExternalFindDataResponse);
|
|
374
390
|
*/
|
|
375
|
-
|
|
391
|
+
externalFindData(input: ExternalFindDataRequest, options?: RpcOptions): UnaryCall<ExternalFindDataRequest, ExternalFindDataResponse> {
|
|
376
392
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
377
|
-
return stackIntercept<
|
|
393
|
+
return stackIntercept<ExternalFindDataRequest, ExternalFindDataResponse>("unary", this._transport, method, opt, input);
|
|
378
394
|
}
|
|
379
395
|
/**
|
|
380
396
|
* @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// tslint:disable
|
|
4
4
|
import { ExternalStoreDataResponse } from "./DhtRpc";
|
|
5
5
|
import { ExternalStoreDataRequest } from "./DhtRpc";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { ExternalFindDataResponse } from "./DhtRpc";
|
|
7
|
+
import { ExternalFindDataRequest } from "./DhtRpc";
|
|
8
8
|
import { DisconnectNoticeResponse } from "./DhtRpc";
|
|
9
9
|
import { DisconnectNotice } from "./DhtRpc";
|
|
10
10
|
import { UnlockRequest } from "./DhtRpc";
|
|
@@ -13,9 +13,9 @@ import { LockRequest } from "./DhtRpc";
|
|
|
13
13
|
import { IceCandidate } from "./DhtRpc";
|
|
14
14
|
import { RtcAnswer } from "./DhtRpc";
|
|
15
15
|
import { RtcOffer } from "./DhtRpc";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
16
|
+
import { WebrtcConnectionRequest } from "./DhtRpc";
|
|
17
|
+
import { WebsocketConnectionResponse } from "./DhtRpc";
|
|
18
|
+
import { WebsocketConnectionRequest } from "./DhtRpc";
|
|
19
19
|
import { FindResponse } from "./DhtRpc";
|
|
20
20
|
import { DeleteDataResponse } from "./DhtRpc";
|
|
21
21
|
import { DeleteDataRequest } from "./DhtRpc";
|
|
@@ -33,9 +33,9 @@ import { ClosestPeersResponse } from "./DhtRpc";
|
|
|
33
33
|
import { ClosestPeersRequest } from "./DhtRpc";
|
|
34
34
|
import { ServerCallContext } 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 IDhtNodeRpc<T = ServerCallContext> {
|
|
39
39
|
/**
|
|
40
40
|
* @generated from protobuf rpc: getClosestPeers(dht.ClosestPeersRequest) returns (dht.ClosestPeersResponse);
|
|
41
41
|
*/
|
|
@@ -61,10 +61,15 @@ export interface IRouterRpc<T = ServerCallContext> {
|
|
|
61
61
|
* @generated from protobuf rpc: forwardMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
62
62
|
*/
|
|
63
63
|
forwardMessage(request: RouteMessageWrapper, context: T): Promise<RouteMessageAck>;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf service dht.FindRpc
|
|
67
|
+
*/
|
|
68
|
+
export interface IFindRpc<T = ServerCallContext> {
|
|
64
69
|
/**
|
|
65
|
-
* @generated from protobuf rpc:
|
|
70
|
+
* @generated from protobuf rpc: routeFindRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
66
71
|
*/
|
|
67
|
-
|
|
72
|
+
routeFindRequest(request: RouteMessageWrapper, context: T): Promise<RouteMessageAck>;
|
|
68
73
|
}
|
|
69
74
|
/**
|
|
70
75
|
* @generated from protobuf service dht.StoreRpc
|
|
@@ -84,31 +89,31 @@ export interface IStoreRpc<T = ServerCallContext> {
|
|
|
84
89
|
deleteData(request: DeleteDataRequest, context: T): Promise<DeleteDataResponse>;
|
|
85
90
|
}
|
|
86
91
|
/**
|
|
87
|
-
* @generated from protobuf service dht.
|
|
92
|
+
* @generated from protobuf service dht.FindSessionRpc
|
|
88
93
|
*/
|
|
89
|
-
export interface
|
|
94
|
+
export interface IFindSessionRpc<T = ServerCallContext> {
|
|
90
95
|
/**
|
|
91
96
|
* @generated from protobuf rpc: sendFindResponse(dht.FindResponse) returns (google.protobuf.Empty);
|
|
92
97
|
*/
|
|
93
98
|
sendFindResponse(request: FindResponse, context: T): Promise<Empty>;
|
|
94
99
|
}
|
|
95
100
|
/**
|
|
96
|
-
* @generated from protobuf service dht.
|
|
101
|
+
* @generated from protobuf service dht.WebsocketConnectorRpc
|
|
97
102
|
*/
|
|
98
|
-
export interface
|
|
103
|
+
export interface IWebsocketConnectorRpc<T = ServerCallContext> {
|
|
99
104
|
/**
|
|
100
|
-
* @generated from protobuf rpc: requestConnection(dht.
|
|
105
|
+
* @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (dht.WebsocketConnectionResponse);
|
|
101
106
|
*/
|
|
102
|
-
requestConnection(request:
|
|
107
|
+
requestConnection(request: WebsocketConnectionRequest, context: T): Promise<WebsocketConnectionResponse>;
|
|
103
108
|
}
|
|
104
109
|
/**
|
|
105
|
-
* @generated from protobuf service dht.
|
|
110
|
+
* @generated from protobuf service dht.WebrtcConnectorRpc
|
|
106
111
|
*/
|
|
107
|
-
export interface
|
|
112
|
+
export interface IWebrtcConnectorRpc<T = ServerCallContext> {
|
|
108
113
|
/**
|
|
109
|
-
* @generated from protobuf rpc: requestConnection(dht.
|
|
114
|
+
* @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
|
|
110
115
|
*/
|
|
111
|
-
requestConnection(request:
|
|
116
|
+
requestConnection(request: WebrtcConnectionRequest, context: T): Promise<Empty>;
|
|
112
117
|
/**
|
|
113
118
|
* @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
|
|
114
119
|
*/
|
|
@@ -144,9 +149,9 @@ export interface IConnectionLockRpc<T = ServerCallContext> {
|
|
|
144
149
|
*/
|
|
145
150
|
export interface IExternalApiRpc<T = ServerCallContext> {
|
|
146
151
|
/**
|
|
147
|
-
* @generated from protobuf rpc:
|
|
152
|
+
* @generated from protobuf rpc: externalFindData(dht.ExternalFindDataRequest) returns (dht.ExternalFindDataResponse);
|
|
148
153
|
*/
|
|
149
|
-
|
|
154
|
+
externalFindData(request: ExternalFindDataRequest, context: T): Promise<ExternalFindDataResponse>;
|
|
150
155
|
/**
|
|
151
156
|
* @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
|
|
152
157
|
*/
|