@streamr/dht 102.1.0 → 102.2.0-rc.1
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/package.json +17 -26
- package/src/connection/webrtc/BrowserWebrtcConnection.d.ts +35 -0
- package/src/connection/webrtc/BrowserWebrtcConnection.js +215 -0
- package/src/connection/webrtc/BrowserWebrtcConnection.js.map +1 -0
- package/src/connection/websocket/BrowserWebsocketClientConnection.d.ts +7 -0
- package/src/connection/websocket/BrowserWebsocketClientConnection.js +44 -0
- package/src/connection/websocket/BrowserWebsocketClientConnection.js.map +1 -0
- package/{dist/src → src}/connection/websocket/WebsocketServer.js +2 -2
- package/{dist/src → src}/connection/websocket/WebsocketServer.js.map +1 -1
- package/{dist/src → src}/connection/websocket/WebsocketServerConnector.js +4 -5
- package/src/connection/websocket/WebsocketServerConnector.js.map +1 -0
- package/{dist/src → src}/dht/DhtNode.js +6 -3
- package/src/dht/DhtNode.js.map +1 -0
- package/{dist/src → src}/dht/contact/SortedContactList.js +3 -3
- package/{dist/src → src}/dht/contact/SortedContactList.js.map +1 -1
- package/{dist/src → src}/dht/routing/RoutingSession.js +2 -2
- package/{dist/src → src}/dht/routing/RoutingSession.js.map +1 -1
- package/src/dht/routing/getPreviousPeer.js +12 -0
- package/src/dht/routing/getPreviousPeer.js.map +1 -0
- package/tsconfig.node.tsbuildinfo +1 -0
- package/dist/package.json +0 -65
- package/dist/src/connection/websocket/WebsocketServerConnector.js.map +0 -1
- package/dist/src/dht/DhtNode.js.map +0 -1
- package/dist/src/dht/routing/getPreviousPeer.js +0 -9
- package/dist/src/dht/routing/getPreviousPeer.js.map +0 -1
- package/jest.config.ts +0 -12
- package/karma-setup.js +0 -2
- package/karma.config.js +0 -27
- package/proto.sh +0 -2
- package/protos/DhtRpc.proto +0 -317
- package/protos/tests.proto +0 -16
- /package/{dist/generated → generated}/google/protobuf/any.d.ts +0 -0
- /package/{dist/generated → generated}/google/protobuf/any.js +0 -0
- /package/{dist/generated → generated}/google/protobuf/any.js.map +0 -0
- /package/{dist/generated → generated}/google/protobuf/empty.d.ts +0 -0
- /package/{dist/generated → generated}/google/protobuf/empty.js +0 -0
- /package/{dist/generated → generated}/google/protobuf/empty.js.map +0 -0
- /package/{dist/generated → generated}/google/protobuf/timestamp.d.ts +0 -0
- /package/{dist/generated → generated}/google/protobuf/timestamp.js +0 -0
- /package/{dist/generated → generated}/google/protobuf/timestamp.js.map +0 -0
- /package/{dist/generated → generated}/packages/dht/protos/DhtRpc.client.d.ts +0 -0
- /package/{dist/generated → generated}/packages/dht/protos/DhtRpc.client.js +0 -0
- /package/{dist/generated → generated}/packages/dht/protos/DhtRpc.client.js.map +0 -0
- /package/{dist/generated → generated}/packages/dht/protos/DhtRpc.d.ts +0 -0
- /package/{dist/generated → generated}/packages/dht/protos/DhtRpc.js +0 -0
- /package/{dist/generated → generated}/packages/dht/protos/DhtRpc.js.map +0 -0
- /package/{dist/generated → generated}/packages/dht/protos/DhtRpc.server.d.ts +0 -0
- /package/{dist/generated → generated}/packages/dht/protos/DhtRpc.server.js +0 -0
- /package/{dist/generated → generated}/packages/dht/protos/DhtRpc.server.js.map +0 -0
- /package/{dist/generated → generated}/packages/proto-rpc/protos/ProtoRpc.d.ts +0 -0
- /package/{dist/generated → generated}/packages/proto-rpc/protos/ProtoRpc.js +0 -0
- /package/{dist/generated → generated}/packages/proto-rpc/protos/ProtoRpc.js.map +0 -0
- /package/{dist/src → src}/connection/Connection.d.ts +0 -0
- /package/{dist/src → src}/connection/Connection.js +0 -0
- /package/{dist/src → src}/connection/Connection.js.map +0 -0
- /package/{dist/src → src}/connection/ConnectionLockRpcLocal.d.ts +0 -0
- /package/{dist/src → src}/connection/ConnectionLockRpcLocal.js +0 -0
- /package/{dist/src → src}/connection/ConnectionLockRpcLocal.js.map +0 -0
- /package/{dist/src → src}/connection/ConnectionLockRpcRemote.d.ts +0 -0
- /package/{dist/src → src}/connection/ConnectionLockRpcRemote.js +0 -0
- /package/{dist/src → src}/connection/ConnectionLockRpcRemote.js.map +0 -0
- /package/{dist/src → src}/connection/ConnectionLockStates.d.ts +0 -0
- /package/{dist/src → src}/connection/ConnectionLockStates.js +0 -0
- /package/{dist/src → src}/connection/ConnectionLockStates.js.map +0 -0
- /package/{dist/src → src}/connection/ConnectionManager.d.ts +0 -0
- /package/{dist/src → src}/connection/ConnectionManager.js +0 -0
- /package/{dist/src → src}/connection/ConnectionManager.js.map +0 -0
- /package/{dist/src → src}/connection/ConnectionsView.d.ts +0 -0
- /package/{dist/src → src}/connection/ConnectionsView.js +0 -0
- /package/{dist/src → src}/connection/ConnectionsView.js.map +0 -0
- /package/{dist/src → src}/connection/ConnectorFacade.d.ts +0 -0
- /package/{dist/src → src}/connection/ConnectorFacade.js +0 -0
- /package/{dist/src → src}/connection/ConnectorFacade.js.map +0 -0
- /package/{dist/src → src}/connection/Handshaker.d.ts +0 -0
- /package/{dist/src → src}/connection/Handshaker.js +0 -0
- /package/{dist/src → src}/connection/Handshaker.js.map +0 -0
- /package/{dist/src → src}/connection/IConnection.d.ts +0 -0
- /package/{dist/src → src}/connection/IConnection.js +0 -0
- /package/{dist/src → src}/connection/IConnection.js.map +0 -0
- /package/{dist/src → src}/connection/ManagedConnection.d.ts +0 -0
- /package/{dist/src → src}/connection/ManagedConnection.js +0 -0
- /package/{dist/src → src}/connection/ManagedConnection.js.map +0 -0
- /package/{dist/src → src}/connection/OutputBuffer.d.ts +0 -0
- /package/{dist/src → src}/connection/OutputBuffer.js +0 -0
- /package/{dist/src → src}/connection/OutputBuffer.js.map +0 -0
- /package/{dist/src → src}/connection/PendingConnection.d.ts +0 -0
- /package/{dist/src → src}/connection/PendingConnection.js +0 -0
- /package/{dist/src → src}/connection/PendingConnection.js.map +0 -0
- /package/{dist/src → src}/connection/connectivityChecker.d.ts +0 -0
- /package/{dist/src → src}/connection/connectivityChecker.js +0 -0
- /package/{dist/src → src}/connection/connectivityChecker.js.map +0 -0
- /package/{dist/src → src}/connection/connectivityRequestHandler.d.ts +0 -0
- /package/{dist/src → src}/connection/connectivityRequestHandler.js +0 -0
- /package/{dist/src → src}/connection/connectivityRequestHandler.js.map +0 -0
- /package/{dist/src → src}/connection/simulator/Simulator.d.ts +0 -0
- /package/{dist/src → src}/connection/simulator/Simulator.js +0 -0
- /package/{dist/src → src}/connection/simulator/Simulator.js.map +0 -0
- /package/{dist/src → src}/connection/simulator/SimulatorConnection.d.ts +0 -0
- /package/{dist/src → src}/connection/simulator/SimulatorConnection.js +0 -0
- /package/{dist/src → src}/connection/simulator/SimulatorConnection.js.map +0 -0
- /package/{dist/src → src}/connection/simulator/SimulatorConnector.d.ts +0 -0
- /package/{dist/src → src}/connection/simulator/SimulatorConnector.js +0 -0
- /package/{dist/src → src}/connection/simulator/SimulatorConnector.js.map +0 -0
- /package/{dist/src → src}/connection/simulator/SimulatorTransport.d.ts +0 -0
- /package/{dist/src → src}/connection/simulator/SimulatorTransport.js +0 -0
- /package/{dist/src → src}/connection/simulator/SimulatorTransport.js.map +0 -0
- /package/{dist/src → src}/connection/simulator/pings.d.ts +0 -0
- /package/{dist/src → src}/connection/simulator/pings.js +0 -0
- /package/{dist/src → src}/connection/simulator/pings.js.map +0 -0
- /package/{dist/src → src}/connection/webrtc/IWebrtcConnection.d.ts +0 -0
- /package/{dist/src → src}/connection/webrtc/IWebrtcConnection.js +0 -0
- /package/{dist/src → src}/connection/webrtc/IWebrtcConnection.js.map +0 -0
- /package/{dist/src → src}/connection/webrtc/NodeWebrtcConnection.d.ts +0 -0
- /package/{dist/src → src}/connection/webrtc/NodeWebrtcConnection.js +0 -0
- /package/{dist/src → src}/connection/webrtc/NodeWebrtcConnection.js.map +0 -0
- /package/{dist/src → src}/connection/webrtc/WebrtcConnector.d.ts +0 -0
- /package/{dist/src → src}/connection/webrtc/WebrtcConnector.js +0 -0
- /package/{dist/src → src}/connection/webrtc/WebrtcConnector.js.map +0 -0
- /package/{dist/src → src}/connection/webrtc/WebrtcConnectorRpcLocal.d.ts +0 -0
- /package/{dist/src → src}/connection/webrtc/WebrtcConnectorRpcLocal.js +0 -0
- /package/{dist/src → src}/connection/webrtc/WebrtcConnectorRpcLocal.js.map +0 -0
- /package/{dist/src → src}/connection/webrtc/WebrtcConnectorRpcRemote.d.ts +0 -0
- /package/{dist/src → src}/connection/webrtc/WebrtcConnectorRpcRemote.js +0 -0
- /package/{dist/src → src}/connection/webrtc/WebrtcConnectorRpcRemote.js.map +0 -0
- /package/{dist/src → src}/connection/webrtc/iceServerAsString.d.ts +0 -0
- /package/{dist/src → src}/connection/webrtc/iceServerAsString.js +0 -0
- /package/{dist/src → src}/connection/webrtc/iceServerAsString.js.map +0 -0
- /package/{dist/src → src}/connection/websocket/AbstractWebsocketClientConnection.d.ts +0 -0
- /package/{dist/src → src}/connection/websocket/AbstractWebsocketClientConnection.js +0 -0
- /package/{dist/src → src}/connection/websocket/AbstractWebsocketClientConnection.js.map +0 -0
- /package/{dist/src → src}/connection/websocket/AutoCertifierClientFacade.d.ts +0 -0
- /package/{dist/src → src}/connection/websocket/AutoCertifierClientFacade.js +0 -0
- /package/{dist/src → src}/connection/websocket/AutoCertifierClientFacade.js.map +0 -0
- /package/{dist/src → src}/connection/websocket/NodeWebsocketClientConnection.d.ts +0 -0
- /package/{dist/src → src}/connection/websocket/NodeWebsocketClientConnection.js +0 -0
- /package/{dist/src → src}/connection/websocket/NodeWebsocketClientConnection.js.map +0 -0
- /package/{dist/src → src}/connection/websocket/WebsocketClientConnector.d.ts +0 -0
- /package/{dist/src → src}/connection/websocket/WebsocketClientConnector.js +0 -0
- /package/{dist/src → src}/connection/websocket/WebsocketClientConnector.js.map +0 -0
- /package/{dist/src → src}/connection/websocket/WebsocketClientConnectorRpcLocal.d.ts +0 -0
- /package/{dist/src → src}/connection/websocket/WebsocketClientConnectorRpcLocal.js +0 -0
- /package/{dist/src → src}/connection/websocket/WebsocketClientConnectorRpcLocal.js.map +0 -0
- /package/{dist/src → src}/connection/websocket/WebsocketClientConnectorRpcRemote.d.ts +0 -0
- /package/{dist/src → src}/connection/websocket/WebsocketClientConnectorRpcRemote.js +0 -0
- /package/{dist/src → src}/connection/websocket/WebsocketClientConnectorRpcRemote.js.map +0 -0
- /package/{dist/src → src}/connection/websocket/WebsocketServer.d.ts +0 -0
- /package/{dist/src → src}/connection/websocket/WebsocketServerConnection.d.ts +0 -0
- /package/{dist/src → src}/connection/websocket/WebsocketServerConnection.js +0 -0
- /package/{dist/src → src}/connection/websocket/WebsocketServerConnection.js.map +0 -0
- /package/{dist/src → src}/connection/websocket/WebsocketServerConnector.d.ts +0 -0
- /package/{dist/src → src}/dht/DhtNode.d.ts +0 -0
- /package/{dist/src → src}/dht/DhtNodeRpcLocal.d.ts +0 -0
- /package/{dist/src → src}/dht/DhtNodeRpcLocal.js +0 -0
- /package/{dist/src → src}/dht/DhtNodeRpcLocal.js.map +0 -0
- /package/{dist/src → src}/dht/DhtNodeRpcRemote.d.ts +0 -0
- /package/{dist/src → src}/dht/DhtNodeRpcRemote.js +0 -0
- /package/{dist/src → src}/dht/DhtNodeRpcRemote.js.map +0 -0
- /package/{dist/src → src}/dht/ExternalApiRpcLocal.d.ts +0 -0
- /package/{dist/src → src}/dht/ExternalApiRpcLocal.js +0 -0
- /package/{dist/src → src}/dht/ExternalApiRpcLocal.js.map +0 -0
- /package/{dist/src → src}/dht/ExternalApiRpcRemote.d.ts +0 -0
- /package/{dist/src → src}/dht/ExternalApiRpcRemote.js +0 -0
- /package/{dist/src → src}/dht/ExternalApiRpcRemote.js.map +0 -0
- /package/{dist/src → src}/dht/PeerManager.d.ts +0 -0
- /package/{dist/src → src}/dht/PeerManager.js +0 -0
- /package/{dist/src → src}/dht/PeerManager.js.map +0 -0
- /package/{dist/src → src}/dht/contact/Contact.d.ts +0 -0
- /package/{dist/src → src}/dht/contact/Contact.js +0 -0
- /package/{dist/src → src}/dht/contact/Contact.js.map +0 -0
- /package/{dist/src → src}/dht/contact/ContactList.d.ts +0 -0
- /package/{dist/src → src}/dht/contact/ContactList.js +0 -0
- /package/{dist/src → src}/dht/contact/ContactList.js.map +0 -0
- /package/{dist/src → src}/dht/contact/RandomContactList.d.ts +0 -0
- /package/{dist/src → src}/dht/contact/RandomContactList.js +0 -0
- /package/{dist/src → src}/dht/contact/RandomContactList.js.map +0 -0
- /package/{dist/src → src}/dht/contact/RingContactList.d.ts +0 -0
- /package/{dist/src → src}/dht/contact/RingContactList.js +0 -0
- /package/{dist/src → src}/dht/contact/RingContactList.js.map +0 -0
- /package/{dist/src → src}/dht/contact/RpcRemote.d.ts +0 -0
- /package/{dist/src → src}/dht/contact/RpcRemote.js +0 -0
- /package/{dist/src → src}/dht/contact/RpcRemote.js.map +0 -0
- /package/{dist/src → src}/dht/contact/SortedContactList.d.ts +0 -0
- /package/{dist/src → src}/dht/contact/getClosestNodes.d.ts +0 -0
- /package/{dist/src → src}/dht/contact/getClosestNodes.js +0 -0
- /package/{dist/src → src}/dht/contact/getClosestNodes.js.map +0 -0
- /package/{dist/src → src}/dht/contact/ringIdentifiers.d.ts +0 -0
- /package/{dist/src → src}/dht/contact/ringIdentifiers.js +0 -0
- /package/{dist/src → src}/dht/contact/ringIdentifiers.js.map +0 -0
- /package/{dist/src → src}/dht/discovery/DiscoverySession.d.ts +0 -0
- /package/{dist/src → src}/dht/discovery/DiscoverySession.js +0 -0
- /package/{dist/src → src}/dht/discovery/DiscoverySession.js.map +0 -0
- /package/{dist/src → src}/dht/discovery/PeerDiscovery.d.ts +0 -0
- /package/{dist/src → src}/dht/discovery/PeerDiscovery.js +0 -0
- /package/{dist/src → src}/dht/discovery/PeerDiscovery.js.map +0 -0
- /package/{dist/src → src}/dht/discovery/RingDiscoverySession.d.ts +0 -0
- /package/{dist/src → src}/dht/discovery/RingDiscoverySession.js +0 -0
- /package/{dist/src → src}/dht/discovery/RingDiscoverySession.js.map +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationManager.d.ts +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationManager.js +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationManager.js.map +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationRpcLocal.d.ts +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationRpcLocal.js +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationRpcLocal.js.map +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationRpcRemote.d.ts +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationRpcRemote.js +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationRpcRemote.js.map +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationSession.d.ts +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationSession.js +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationSession.js.map +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationSessionRpcLocal.d.ts +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationSessionRpcLocal.js +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationSessionRpcLocal.js.map +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationSessionRpcRemote.d.ts +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationSessionRpcRemote.js +0 -0
- /package/{dist/src → src}/dht/recursive-operation/RecursiveOperationSessionRpcRemote.js.map +0 -0
- /package/{dist/src → src}/dht/routing/DuplicateDetector.d.ts +0 -0
- /package/{dist/src → src}/dht/routing/DuplicateDetector.js +0 -0
- /package/{dist/src → src}/dht/routing/DuplicateDetector.js.map +0 -0
- /package/{dist/src → src}/dht/routing/Router.d.ts +0 -0
- /package/{dist/src → src}/dht/routing/Router.js +0 -0
- /package/{dist/src → src}/dht/routing/Router.js.map +0 -0
- /package/{dist/src → src}/dht/routing/RouterRpcLocal.d.ts +0 -0
- /package/{dist/src → src}/dht/routing/RouterRpcLocal.js +0 -0
- /package/{dist/src → src}/dht/routing/RouterRpcLocal.js.map +0 -0
- /package/{dist/src → src}/dht/routing/RouterRpcRemote.d.ts +0 -0
- /package/{dist/src → src}/dht/routing/RouterRpcRemote.js +0 -0
- /package/{dist/src → src}/dht/routing/RouterRpcRemote.js.map +0 -0
- /package/{dist/src → src}/dht/routing/RoutingSession.d.ts +0 -0
- /package/{dist/src → src}/dht/routing/RoutingTablesCache.d.ts +0 -0
- /package/{dist/src → src}/dht/routing/RoutingTablesCache.js +0 -0
- /package/{dist/src → src}/dht/routing/RoutingTablesCache.js.map +0 -0
- /package/{dist/src → src}/dht/routing/getPreviousPeer.d.ts +0 -0
- /package/{dist/src → src}/dht/store/LocalDataStore.d.ts +0 -0
- /package/{dist/src → src}/dht/store/LocalDataStore.js +0 -0
- /package/{dist/src → src}/dht/store/LocalDataStore.js.map +0 -0
- /package/{dist/src → src}/dht/store/StoreManager.d.ts +0 -0
- /package/{dist/src → src}/dht/store/StoreManager.js +0 -0
- /package/{dist/src → src}/dht/store/StoreManager.js.map +0 -0
- /package/{dist/src → src}/dht/store/StoreRpcLocal.d.ts +0 -0
- /package/{dist/src → src}/dht/store/StoreRpcLocal.js +0 -0
- /package/{dist/src → src}/dht/store/StoreRpcLocal.js.map +0 -0
- /package/{dist/src → src}/dht/store/StoreRpcRemote.d.ts +0 -0
- /package/{dist/src → src}/dht/store/StoreRpcRemote.js +0 -0
- /package/{dist/src → src}/dht/store/StoreRpcRemote.js.map +0 -0
- /package/{dist/src → src}/exports.d.ts +0 -0
- /package/{dist/src → src}/exports.js +0 -0
- /package/{dist/src → src}/exports.js.map +0 -0
- /package/{dist/src → src}/helpers/AddressTools.d.ts +0 -0
- /package/{dist/src → src}/helpers/AddressTools.js +0 -0
- /package/{dist/src → src}/helpers/AddressTools.js.map +0 -0
- /package/{dist/src → src}/helpers/Connectivity.d.ts +0 -0
- /package/{dist/src → src}/helpers/Connectivity.js +0 -0
- /package/{dist/src → src}/helpers/Connectivity.js.map +0 -0
- /package/{dist/src → src}/helpers/browser/isBrowserEnvironment.d.ts +0 -0
- /package/{dist/src → src}/helpers/browser/isBrowserEnvironment.js +0 -0
- /package/{dist/src → src}/helpers/browser/isBrowserEnvironment.js.map +0 -0
- /package/{dist/src → src}/helpers/browser/isBrowserEnvironment_override.d.ts +0 -0
- /package/{dist/src → src}/helpers/browser/isBrowserEnvironment_override.js +0 -0
- /package/{dist/src → src}/helpers/browser/isBrowserEnvironment_override.js.map +0 -0
- /package/{dist/src → src}/helpers/createPeerDescriptor.d.ts +0 -0
- /package/{dist/src → src}/helpers/createPeerDescriptor.js +0 -0
- /package/{dist/src → src}/helpers/createPeerDescriptor.js.map +0 -0
- /package/{dist/src → src}/helpers/createPeerDescriptorSignaturePayload.d.ts +0 -0
- /package/{dist/src → src}/helpers/createPeerDescriptorSignaturePayload.js +0 -0
- /package/{dist/src → src}/helpers/createPeerDescriptorSignaturePayload.js.map +0 -0
- /package/{dist/src → src}/helpers/debugHelpers.d.ts +0 -0
- /package/{dist/src → src}/helpers/debugHelpers.js +0 -0
- /package/{dist/src → src}/helpers/debugHelpers.js.map +0 -0
- /package/{dist/src → src}/helpers/errors.d.ts +0 -0
- /package/{dist/src → src}/helpers/errors.js +0 -0
- /package/{dist/src → src}/helpers/errors.js.map +0 -0
- /package/{dist/src → src}/helpers/offering.d.ts +0 -0
- /package/{dist/src → src}/helpers/offering.js +0 -0
- /package/{dist/src → src}/helpers/offering.js.map +0 -0
- /package/{dist/src → src}/helpers/protoClasses.d.ts +0 -0
- /package/{dist/src → src}/helpers/protoClasses.js +0 -0
- /package/{dist/src → src}/helpers/protoClasses.js.map +0 -0
- /package/{dist/src → src}/helpers/protoToString.d.ts +0 -0
- /package/{dist/src → src}/helpers/protoToString.js +0 -0
- /package/{dist/src → src}/helpers/protoToString.js.map +0 -0
- /package/{dist/src → src}/helpers/version.d.ts +0 -0
- /package/{dist/src → src}/helpers/version.js +0 -0
- /package/{dist/src → src}/helpers/version.js.map +0 -0
- /package/{dist/src → src}/identifiers.d.ts +0 -0
- /package/{dist/src → src}/identifiers.js +0 -0
- /package/{dist/src → src}/identifiers.js.map +0 -0
- /package/{dist/src → src}/rpc-protocol/DhtCallContext.d.ts +0 -0
- /package/{dist/src → src}/rpc-protocol/DhtCallContext.js +0 -0
- /package/{dist/src → src}/rpc-protocol/DhtCallContext.js.map +0 -0
- /package/{dist/src → src}/rpc-protocol/DhtRpcOptions.d.ts +0 -0
- /package/{dist/src → src}/rpc-protocol/DhtRpcOptions.js +0 -0
- /package/{dist/src → src}/rpc-protocol/DhtRpcOptions.js.map +0 -0
- /package/{dist/src → src}/transport/ITransport.d.ts +0 -0
- /package/{dist/src → src}/transport/ITransport.js +0 -0
- /package/{dist/src → src}/transport/ITransport.js.map +0 -0
- /package/{dist/src → src}/transport/ListeningRpcCommunicator.d.ts +0 -0
- /package/{dist/src → src}/transport/ListeningRpcCommunicator.js +0 -0
- /package/{dist/src → src}/transport/ListeningRpcCommunicator.js.map +0 -0
- /package/{dist/src → src}/transport/RoutingRpcCommunicator.d.ts +0 -0
- /package/{dist/src → src}/transport/RoutingRpcCommunicator.js +0 -0
- /package/{dist/src → src}/transport/RoutingRpcCommunicator.js.map +0 -0
- /package/{dist/src → src}/types/ServiceID.d.ts +0 -0
- /package/{dist/src → src}/types/ServiceID.js +0 -0
- /package/{dist/src → src}/types/ServiceID.js.map +0 -0
package/karma.config.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
-
const path = require('path')
|
|
3
|
-
const { createKarmaConfig, createWebpackConfig } = require('@streamr/browser-test-runner')
|
|
4
|
-
|
|
5
|
-
const TEST_PATHS = [
|
|
6
|
-
'test/unit/**/!(connectivityRequestHandler*).ts',
|
|
7
|
-
'./test/integration/**/!(DhtWith*|ReplicateData*|GeoIpConnectivityChecking*).ts/',
|
|
8
|
-
'./test/end-to-end/**/!(RecoveryFromFailedAutoCertification*|memory-leak*|GeoIpLayer0*).ts'
|
|
9
|
-
]
|
|
10
|
-
|
|
11
|
-
const NodeWebrtcConnection = path.resolve(__dirname, 'src/connection/webrtc/NodeWebrtcConnection.ts')
|
|
12
|
-
const BrowserWebrtcConnection = path.resolve(__dirname, 'src/connection/webrtc/BrowserWebrtcConnection.ts')
|
|
13
|
-
const NodeWebsocketClientConnection = path.resolve(__dirname, 'src/connection/websocket/NodeWebsocketClientConnection.ts')
|
|
14
|
-
const BrowserWebsocketClientConnection = path.resolve(__dirname, 'src/connection/websocket/BrowserWebsocketClientConnection.ts')
|
|
15
|
-
|
|
16
|
-
module.exports = createKarmaConfig(
|
|
17
|
-
TEST_PATHS,
|
|
18
|
-
createWebpackConfig({
|
|
19
|
-
entry: './src/exports.ts',
|
|
20
|
-
libraryName: 'dht',
|
|
21
|
-
alias: {
|
|
22
|
-
[NodeWebrtcConnection]: BrowserWebrtcConnection,
|
|
23
|
-
[NodeWebsocketClientConnection]: BrowserWebsocketClientConnection
|
|
24
|
-
}
|
|
25
|
-
}),
|
|
26
|
-
__dirname
|
|
27
|
-
)
|
package/proto.sh
DELETED
package/protos/DhtRpc.proto
DELETED
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
option optimize_for = CODE_SIZE;
|
|
3
|
-
|
|
4
|
-
package dht;
|
|
5
|
-
|
|
6
|
-
import "google/protobuf/empty.proto";
|
|
7
|
-
import "google/protobuf/any.proto";
|
|
8
|
-
import "google/protobuf/timestamp.proto";
|
|
9
|
-
import "packages/proto-rpc/protos/ProtoRpc.proto";
|
|
10
|
-
|
|
11
|
-
service DhtNodeRpc {
|
|
12
|
-
// TODO rename to getClosestNeighbors (breaking change)
|
|
13
|
-
rpc getClosestPeers (ClosestPeersRequest) returns (ClosestPeersResponse);
|
|
14
|
-
// TODO rename to getClosestRingContacts (breaking change)
|
|
15
|
-
rpc getClosestRingPeers (ClosestRingPeersRequest) returns (ClosestRingPeersResponse);
|
|
16
|
-
rpc ping (PingRequest) returns (PingResponse);
|
|
17
|
-
rpc leaveNotice (LeaveNotice) returns (google.protobuf.Empty);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
service RouterRpc {
|
|
21
|
-
rpc routeMessage (RouteMessageWrapper) returns (RouteMessageAck);
|
|
22
|
-
rpc forwardMessage (RouteMessageWrapper) returns (RouteMessageAck);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
service RecursiveOperationRpc {
|
|
26
|
-
rpc routeRequest (RouteMessageWrapper) returns (RouteMessageAck);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
service StoreRpc {
|
|
30
|
-
rpc storeData (StoreDataRequest) returns (StoreDataResponse);
|
|
31
|
-
rpc replicateData (ReplicateDataRequest) returns (google.protobuf.Empty);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
service RecursiveOperationSessionRpc {
|
|
35
|
-
rpc sendResponse(RecursiveOperationResponse) returns (google.protobuf.Empty);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
service WebsocketClientConnectorRpc {
|
|
39
|
-
rpc requestConnection (WebsocketConnectionRequest) returns (google.protobuf.Empty);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
service WebrtcConnectorRpc {
|
|
43
|
-
rpc requestConnection (WebrtcConnectionRequest) returns (google.protobuf.Empty);
|
|
44
|
-
rpc rtcOffer (RtcOffer) returns (google.protobuf.Empty);
|
|
45
|
-
rpc rtcAnswer (RtcAnswer) returns (google.protobuf.Empty);
|
|
46
|
-
rpc iceCandidate (IceCandidate) returns (google.protobuf.Empty);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
service ConnectionLockRpc {
|
|
50
|
-
rpc lockRequest (LockRequest) returns (LockResponse);
|
|
51
|
-
rpc unlockRequest (UnlockRequest) returns (google.protobuf.Empty);
|
|
52
|
-
rpc gracefulDisconnect (DisconnectNotice) returns (google.protobuf.Empty);
|
|
53
|
-
rpc setPrivate (SetPrivateRequest) returns (google.protobuf.Empty);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
service ExternalApiRpc {
|
|
57
|
-
rpc externalFetchData (ExternalFetchDataRequest) returns (ExternalFetchDataResponse);
|
|
58
|
-
rpc externalStoreData (ExternalStoreDataRequest) returns (ExternalStoreDataResponse);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// Used inside RpcMessage
|
|
62
|
-
|
|
63
|
-
message StoreDataRequest {
|
|
64
|
-
bytes key = 1;
|
|
65
|
-
google.protobuf.Any data = 2;
|
|
66
|
-
bytes creator = 3;
|
|
67
|
-
google.protobuf.Timestamp createdAt = 4;
|
|
68
|
-
uint32 ttl = 5;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
message StoreDataResponse {
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
message ExternalStoreDataRequest {
|
|
75
|
-
bytes key = 1;
|
|
76
|
-
google.protobuf.Any data = 2;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
message ExternalStoreDataResponse {
|
|
80
|
-
repeated PeerDescriptor storers = 1;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
message ReplicateDataRequest {
|
|
84
|
-
DataEntry entry = 1;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
message DataEntry {
|
|
88
|
-
bytes key = 1;
|
|
89
|
-
google.protobuf.Any data = 2;
|
|
90
|
-
bytes creator = 3;
|
|
91
|
-
google.protobuf.Timestamp createdAt = 4;
|
|
92
|
-
google.protobuf.Timestamp storedAt = 5;
|
|
93
|
-
uint32 ttl = 6; // milliseconds
|
|
94
|
-
bool stale = 7;
|
|
95
|
-
bool deleted = 8;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// TODO rename to ClosestNeighborsRequest
|
|
99
|
-
message ClosestPeersRequest {
|
|
100
|
-
bytes nodeId = 1;
|
|
101
|
-
string requestId = 2;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// TODO rename to ClosestNeighborsResponse
|
|
105
|
-
message ClosestPeersResponse {
|
|
106
|
-
repeated PeerDescriptor peers = 1;
|
|
107
|
-
string requestId = 2;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// TODO rename to ClosestRingContactsRequest
|
|
111
|
-
message ClosestRingPeersRequest {
|
|
112
|
-
bytes ringId = 1;
|
|
113
|
-
string requestId = 2;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// TODO rename to ClosestRingContactsResponse
|
|
117
|
-
message ClosestRingPeersResponse {
|
|
118
|
-
repeated PeerDescriptor leftPeers = 1;
|
|
119
|
-
repeated PeerDescriptor rightPeers = 2;
|
|
120
|
-
string requestId = 3;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
message RecursiveOperationRequest {
|
|
124
|
-
string sessionId = 1;
|
|
125
|
-
RecursiveOperation operation = 2;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
enum RecursiveOperation {
|
|
129
|
-
FIND_CLOSEST_NODES = 0;
|
|
130
|
-
FETCH_DATA = 1;
|
|
131
|
-
DELETE_DATA = 2;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
message RecursiveOperationResponse {
|
|
135
|
-
repeated PeerDescriptor closestConnectedNodes = 1;
|
|
136
|
-
repeated DataEntry dataEntries = 2;
|
|
137
|
-
bool noCloserNodesFound = 3;
|
|
138
|
-
repeated PeerDescriptor routingPath = 4;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
message PingRequest {
|
|
142
|
-
string requestId = 1;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
message PingResponse {
|
|
146
|
-
string requestId = 1;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
message LeaveNotice {
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
message PeerDescriptor {
|
|
153
|
-
bytes nodeId = 1;
|
|
154
|
-
NodeType type = 2;
|
|
155
|
-
ConnectivityMethod udp = 3;
|
|
156
|
-
ConnectivityMethod tcp = 4;
|
|
157
|
-
ConnectivityMethod websocket = 5;
|
|
158
|
-
optional uint32 region = 6;
|
|
159
|
-
optional uint32 ipAddress = 7;
|
|
160
|
-
optional bytes publicKey = 8;
|
|
161
|
-
// signature of fields 2-8
|
|
162
|
-
optional bytes signature = 9;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
message ConnectivityMethod {
|
|
166
|
-
uint32 port = 1;
|
|
167
|
-
string host = 2;
|
|
168
|
-
bool tls = 3;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
enum NodeType {
|
|
172
|
-
NODEJS = 0;
|
|
173
|
-
BROWSER = 1;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
enum RpcResponseError {
|
|
177
|
-
SERVER_TIMOUT = 0;
|
|
178
|
-
CLIENT_TIMEOUT = 1;
|
|
179
|
-
SERVER_ERROR = 2;
|
|
180
|
-
UNKNOWN_RPC_METHOD = 3;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
message RouteMessageWrapper {
|
|
184
|
-
string requestId = 1;
|
|
185
|
-
PeerDescriptor sourcePeer = 2;
|
|
186
|
-
bytes target = 3;
|
|
187
|
-
Message message = 4;
|
|
188
|
-
repeated PeerDescriptor reachableThrough = 5;
|
|
189
|
-
repeated PeerDescriptor routingPath = 6;
|
|
190
|
-
repeated string parallelRootNodeIds = 7;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
message RouteMessageAck {
|
|
194
|
-
string requestId = 1;
|
|
195
|
-
optional RouteMessageError error = 2;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
enum RouteMessageError {
|
|
199
|
-
NO_TARGETS = 0;
|
|
200
|
-
DUPLICATE = 1;
|
|
201
|
-
// TODO: can this be removed? If DhtNode is already stopped the server side requests
|
|
202
|
-
// should not be processed
|
|
203
|
-
STOPPED = 2;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
message ConnectivityRequest {
|
|
207
|
-
uint32 port = 1;
|
|
208
|
-
bool tls = 2;
|
|
209
|
-
optional string host = 3;
|
|
210
|
-
bool allowSelfSignedCertificate = 4;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
message ConnectivityResponse {
|
|
214
|
-
string host = 1;
|
|
215
|
-
string natType = 2;
|
|
216
|
-
ConnectivityMethod websocket = 3;
|
|
217
|
-
uint32 ipAddress = 4;
|
|
218
|
-
string protocolVersion = 5;
|
|
219
|
-
optional double latitude = 6;
|
|
220
|
-
optional double longitude = 7;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
message HandshakeRequest {
|
|
224
|
-
PeerDescriptor sourcePeerDescriptor = 1;
|
|
225
|
-
optional PeerDescriptor targetPeerDescriptor = 2;
|
|
226
|
-
string protocolVersion = 3;
|
|
227
|
-
string applicationVersion = 4;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
message HandshakeResponse {
|
|
231
|
-
PeerDescriptor sourcePeerDescriptor = 1;
|
|
232
|
-
optional HandshakeError error = 2;
|
|
233
|
-
string protocolVersion = 3;
|
|
234
|
-
string applicationVersion = 4;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
enum HandshakeError {
|
|
238
|
-
DUPLICATE_CONNECTION = 0;
|
|
239
|
-
INVALID_TARGET_PEER_DESCRIPTOR = 1;
|
|
240
|
-
UNSUPPORTED_PROTOCOL_VERSION = 2;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
// Wraps all messages
|
|
244
|
-
|
|
245
|
-
message Message {
|
|
246
|
-
string messageId = 1;
|
|
247
|
-
PeerDescriptor sourceDescriptor = 2;
|
|
248
|
-
PeerDescriptor targetDescriptor = 3;
|
|
249
|
-
string serviceId = 4; // id of the RPC service
|
|
250
|
-
oneof body {
|
|
251
|
-
protorpc.RpcMessage rpcMessage = 5;
|
|
252
|
-
ConnectivityRequest connectivityRequest = 6;
|
|
253
|
-
ConnectivityResponse connectivityResponse = 7;
|
|
254
|
-
HandshakeRequest handshakeRequest = 8;
|
|
255
|
-
HandshakeResponse handshakeResponse = 9;
|
|
256
|
-
RecursiveOperationRequest recursiveOperationRequest = 10;
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
// Connector Messages
|
|
261
|
-
|
|
262
|
-
// WebSocket
|
|
263
|
-
message WebsocketConnectionRequest {
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
// WebRTC
|
|
267
|
-
message WebrtcConnectionRequest {
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
message RtcOffer {
|
|
271
|
-
string description = 1;
|
|
272
|
-
string connectionId = 2;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
message RtcAnswer {
|
|
276
|
-
string description = 1;
|
|
277
|
-
string connectionId = 2;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
message IceCandidate {
|
|
281
|
-
string candidate = 1;
|
|
282
|
-
string mid = 2;
|
|
283
|
-
string connectionId = 3;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
message LockRequest {
|
|
287
|
-
string lockId = 1;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
message UnlockRequest {
|
|
291
|
-
string lockId = 1;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
message LockResponse {
|
|
295
|
-
bool accepted = 1;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
enum DisconnectMode {
|
|
299
|
-
NORMAL = 0;
|
|
300
|
-
LEAVING = 1;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
message DisconnectNotice {
|
|
304
|
-
DisconnectMode disconnectMode = 1;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
message SetPrivateRequest {
|
|
308
|
-
bool isPrivate = 1;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
message ExternalFetchDataRequest {
|
|
312
|
-
bytes key = 1;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
message ExternalFetchDataResponse {
|
|
316
|
-
repeated DataEntry entries = 1;
|
|
317
|
-
}
|
package/protos/tests.proto
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
syntax = "proto3";
|
|
3
|
-
option optimize_for = CODE_SIZE;
|
|
4
|
-
|
|
5
|
-
package tests;
|
|
6
|
-
|
|
7
|
-
import "google/protobuf/any.proto";
|
|
8
|
-
|
|
9
|
-
message TestMessage {
|
|
10
|
-
string messageId = 1;
|
|
11
|
-
google.protobuf.Any body = 2;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
message SomeMessage {
|
|
15
|
-
string juttu = 1;
|
|
16
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|