@streamr/dht 103.1.2 → 103.2.0-experiment.0

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.
Files changed (303) hide show
  1. package/dist/exports-browser.cjs +7636 -0
  2. package/dist/exports-browser.cjs.map +1 -0
  3. package/dist/exports-browser.d.ts +1321 -0
  4. package/dist/exports-browser.js +7611 -0
  5. package/dist/exports-browser.js.map +1 -0
  6. package/dist/exports-nodejs.cjs +7833 -0
  7. package/dist/exports-nodejs.cjs.map +1 -0
  8. package/dist/exports-nodejs.d.ts +1321 -0
  9. package/dist/exports-nodejs.js +7808 -0
  10. package/dist/exports-nodejs.js.map +1 -0
  11. package/package.json +41 -25
  12. package/dist/generated/google/protobuf/any.d.ts +0 -180
  13. package/dist/generated/google/protobuf/any.js +0 -155
  14. package/dist/generated/google/protobuf/any.js.map +0 -1
  15. package/dist/generated/google/protobuf/empty.d.ts +0 -31
  16. package/dist/generated/google/protobuf/empty.js +0 -45
  17. package/dist/generated/google/protobuf/empty.js.map +0 -1
  18. package/dist/generated/google/protobuf/timestamp.d.ts +0 -156
  19. package/dist/generated/google/protobuf/timestamp.js +0 -136
  20. package/dist/generated/google/protobuf/timestamp.js.map +0 -1
  21. package/dist/generated/packages/dht/protos/DhtRpc.client.d.ts +0 -371
  22. package/dist/generated/packages/dht/protos/DhtRpc.client.js +0 -292
  23. package/dist/generated/packages/dht/protos/DhtRpc.client.js.map +0 -1
  24. package/dist/generated/packages/dht/protos/DhtRpc.d.ts +0 -1031
  25. package/dist/generated/packages/dht/protos/DhtRpc.js +0 -702
  26. package/dist/generated/packages/dht/protos/DhtRpc.js.map +0 -1
  27. package/dist/generated/packages/dht/protos/DhtRpc.server.d.ts +0 -168
  28. package/dist/generated/packages/dht/protos/DhtRpc.server.js +0 -3
  29. package/dist/generated/packages/dht/protos/DhtRpc.server.js.map +0 -1
  30. package/dist/generated/packages/proto-rpc/protos/ProtoRpc.d.ts +0 -87
  31. package/dist/generated/packages/proto-rpc/protos/ProtoRpc.js +0 -66
  32. package/dist/generated/packages/proto-rpc/protos/ProtoRpc.js.map +0 -1
  33. package/dist/package.json +0 -61
  34. package/dist/src/connection/Connection.d.ts +0 -12
  35. package/dist/src/connection/Connection.js +0 -30
  36. package/dist/src/connection/Connection.js.map +0 -1
  37. package/dist/src/connection/ConnectionLockRpcLocal.d.ts +0 -22
  38. package/dist/src/connection/ConnectionLockRpcLocal.js +0 -54
  39. package/dist/src/connection/ConnectionLockRpcLocal.js.map +0 -1
  40. package/dist/src/connection/ConnectionLockRpcRemote.d.ts +0 -10
  41. package/dist/src/connection/ConnectionLockRpcRemote.js +0 -61
  42. package/dist/src/connection/ConnectionLockRpcRemote.js.map +0 -1
  43. package/dist/src/connection/ConnectionLockStates.d.ts +0 -27
  44. package/dist/src/connection/ConnectionLockStates.js +0 -114
  45. package/dist/src/connection/ConnectionLockStates.js.map +0 -1
  46. package/dist/src/connection/ConnectionManager.d.ts +0 -85
  47. package/dist/src/connection/ConnectionManager.js +0 -569
  48. package/dist/src/connection/ConnectionManager.js.map +0 -1
  49. package/dist/src/connection/ConnectionsView.d.ts +0 -7
  50. package/dist/src/connection/ConnectionsView.js +0 -3
  51. package/dist/src/connection/ConnectionsView.js.map +0 -1
  52. package/dist/src/connection/ConnectorFacade.d.ts +0 -58
  53. package/dist/src/connection/ConnectorFacade.js +0 -154
  54. package/dist/src/connection/ConnectorFacade.js.map +0 -1
  55. package/dist/src/connection/Handshaker.d.ts +0 -27
  56. package/dist/src/connection/Handshaker.js +0 -179
  57. package/dist/src/connection/Handshaker.js.map +0 -1
  58. package/dist/src/connection/IConnection.d.ts +0 -32
  59. package/dist/src/connection/IConnection.js +0 -12
  60. package/dist/src/connection/IConnection.js.map +0 -1
  61. package/dist/src/connection/ManagedConnection.d.ts +0 -30
  62. package/dist/src/connection/ManagedConnection.js +0 -129
  63. package/dist/src/connection/ManagedConnection.js.map +0 -1
  64. package/dist/src/connection/OutputBuffer.d.ts +0 -9
  65. package/dist/src/connection/OutputBuffer.js +0 -26
  66. package/dist/src/connection/OutputBuffer.js.map +0 -1
  67. package/dist/src/connection/PendingConnection.d.ts +0 -19
  68. package/dist/src/connection/PendingConnection.js +0 -59
  69. package/dist/src/connection/PendingConnection.js.map +0 -1
  70. package/dist/src/connection/connectivityChecker.d.ts +0 -9
  71. package/dist/src/connection/connectivityChecker.js +0 -138
  72. package/dist/src/connection/connectivityChecker.js.map +0 -1
  73. package/dist/src/connection/connectivityRequestHandler.d.ts +0 -4
  74. package/dist/src/connection/connectivityRequestHandler.js +0 -108
  75. package/dist/src/connection/connectivityRequestHandler.js.map +0 -1
  76. package/dist/src/connection/simulator/Simulator.d.ts +0 -36
  77. package/dist/src/connection/simulator/Simulator.js +0 -290
  78. package/dist/src/connection/simulator/Simulator.js.map +0 -1
  79. package/dist/src/connection/simulator/SimulatorConnection.d.ts +0 -18
  80. package/dist/src/connection/simulator/SimulatorConnection.js +0 -123
  81. package/dist/src/connection/simulator/SimulatorConnection.js.map +0 -1
  82. package/dist/src/connection/simulator/SimulatorConnector.d.ts +0 -16
  83. package/dist/src/connection/simulator/SimulatorConnector.js +0 -80
  84. package/dist/src/connection/simulator/SimulatorConnector.js.map +0 -1
  85. package/dist/src/connection/simulator/SimulatorTransport.d.ts +0 -6
  86. package/dist/src/connection/simulator/SimulatorTransport.js +0 -17
  87. package/dist/src/connection/simulator/SimulatorTransport.js.map +0 -1
  88. package/dist/src/connection/simulator/pings.d.ts +0 -21
  89. package/dist/src/connection/simulator/pings.js +0 -61
  90. package/dist/src/connection/simulator/pings.js.map +0 -1
  91. package/dist/src/connection/webrtc/BrowserWebrtcConnection.d.ts +0 -37
  92. package/dist/src/connection/webrtc/BrowserWebrtcConnection.js +0 -229
  93. package/dist/src/connection/webrtc/BrowserWebrtcConnection.js.map +0 -1
  94. package/dist/src/connection/webrtc/IWebrtcConnection.d.ts +0 -21
  95. package/dist/src/connection/webrtc/IWebrtcConnection.js +0 -9
  96. package/dist/src/connection/webrtc/IWebrtcConnection.js.map +0 -1
  97. package/dist/src/connection/webrtc/NodeWebrtcConnection.d.ts +0 -45
  98. package/dist/src/connection/webrtc/NodeWebrtcConnection.js +0 -229
  99. package/dist/src/connection/webrtc/NodeWebrtcConnection.js.map +0 -1
  100. package/dist/src/connection/webrtc/WebrtcConnector.d.ts +0 -43
  101. package/dist/src/connection/webrtc/WebrtcConnector.js +0 -208
  102. package/dist/src/connection/webrtc/WebrtcConnector.js.map +0 -1
  103. package/dist/src/connection/webrtc/WebrtcConnectorRpcLocal.d.ts +0 -26
  104. package/dist/src/connection/webrtc/WebrtcConnectorRpcLocal.js +0 -82
  105. package/dist/src/connection/webrtc/WebrtcConnectorRpcLocal.js.map +0 -1
  106. package/dist/src/connection/webrtc/WebrtcConnectorRpcRemote.d.ts +0 -8
  107. package/dist/src/connection/webrtc/WebrtcConnectorRpcRemote.js +0 -50
  108. package/dist/src/connection/webrtc/WebrtcConnectorRpcRemote.js.map +0 -1
  109. package/dist/src/connection/webrtc/iceServerAsString.d.ts +0 -2
  110. package/dist/src/connection/webrtc/iceServerAsString.js +0 -17
  111. package/dist/src/connection/webrtc/iceServerAsString.js.map +0 -1
  112. package/dist/src/connection/websocket/AbstractWebsocketClientConnection.d.ts +0 -27
  113. package/dist/src/connection/websocket/AbstractWebsocketClientConnection.js +0 -107
  114. package/dist/src/connection/websocket/AbstractWebsocketClientConnection.js.map +0 -1
  115. package/dist/src/connection/websocket/AutoCertifierClientFacade.d.ts +0 -26
  116. package/dist/src/connection/websocket/AutoCertifierClientFacade.js +0 -39
  117. package/dist/src/connection/websocket/AutoCertifierClientFacade.js.map +0 -1
  118. package/dist/src/connection/websocket/BrowserWebsocketClientConnection.d.ts +0 -7
  119. package/dist/src/connection/websocket/BrowserWebsocketClientConnection.js +0 -44
  120. package/dist/src/connection/websocket/BrowserWebsocketClientConnection.js.map +0 -1
  121. package/dist/src/connection/websocket/NodeWebsocketClientConnection.d.ts +0 -7
  122. package/dist/src/connection/websocket/NodeWebsocketClientConnection.js +0 -39
  123. package/dist/src/connection/websocket/NodeWebsocketClientConnection.js.map +0 -1
  124. package/dist/src/connection/websocket/WebsocketClientConnector.d.ts +0 -26
  125. package/dist/src/connection/websocket/WebsocketClientConnector.js +0 -86
  126. package/dist/src/connection/websocket/WebsocketClientConnector.js.map +0 -1
  127. package/dist/src/connection/websocket/WebsocketClientConnectorRpcLocal.d.ts +0 -18
  128. package/dist/src/connection/websocket/WebsocketClientConnectorRpcLocal.js +0 -23
  129. package/dist/src/connection/websocket/WebsocketClientConnectorRpcLocal.js.map +0 -1
  130. package/dist/src/connection/websocket/WebsocketClientConnectorRpcRemote.d.ts +0 -5
  131. package/dist/src/connection/websocket/WebsocketClientConnectorRpcRemote.js +0 -17
  132. package/dist/src/connection/websocket/WebsocketClientConnectorRpcRemote.js.map +0 -1
  133. package/dist/src/connection/websocket/WebsocketServer.d.ts +0 -25
  134. package/dist/src/connection/websocket/WebsocketServer.js +0 -146
  135. package/dist/src/connection/websocket/WebsocketServer.js.map +0 -1
  136. package/dist/src/connection/websocket/WebsocketServerConnection.d.ts +0 -22
  137. package/dist/src/connection/websocket/WebsocketServerConnection.js +0 -101
  138. package/dist/src/connection/websocket/WebsocketServerConnection.js.map +0 -1
  139. package/dist/src/connection/websocket/WebsocketServerConnector.d.ts +0 -44
  140. package/dist/src/connection/websocket/WebsocketServerConnector.js +0 -279
  141. package/dist/src/connection/websocket/WebsocketServerConnector.js.map +0 -1
  142. package/dist/src/dht/DhtNode.d.ts +0 -119
  143. package/dist/src/dht/DhtNode.js +0 -500
  144. package/dist/src/dht/DhtNode.js.map +0 -1
  145. package/dist/src/dht/DhtNodeRpcLocal.d.ts +0 -23
  146. package/dist/src/dht/DhtNodeRpcLocal.js +0 -54
  147. package/dist/src/dht/DhtNodeRpcLocal.js.map +0 -1
  148. package/dist/src/dht/DhtNodeRpcRemote.d.ts +0 -25
  149. package/dist/src/dht/DhtNodeRpcRemote.js +0 -83
  150. package/dist/src/dht/DhtNodeRpcRemote.js.map +0 -1
  151. package/dist/src/dht/ExternalApiRpcLocal.d.ts +0 -18
  152. package/dist/src/dht/ExternalApiRpcLocal.js +0 -32
  153. package/dist/src/dht/ExternalApiRpcLocal.js.map +0 -1
  154. package/dist/src/dht/ExternalApiRpcRemote.d.ts +0 -10
  155. package/dist/src/dht/ExternalApiRpcRemote.js +0 -58
  156. package/dist/src/dht/ExternalApiRpcRemote.js.map +0 -1
  157. package/dist/src/dht/PeerManager.d.ts +0 -63
  158. package/dist/src/dht/PeerManager.js +0 -251
  159. package/dist/src/dht/PeerManager.js.map +0 -1
  160. package/dist/src/dht/contact/Contact.d.ts +0 -8
  161. package/dist/src/dht/contact/Contact.js +0 -18
  162. package/dist/src/dht/contact/Contact.js.map +0 -1
  163. package/dist/src/dht/contact/ContactList.d.ts +0 -19
  164. package/dist/src/dht/contact/ContactList.js +0 -35
  165. package/dist/src/dht/contact/ContactList.js.map +0 -1
  166. package/dist/src/dht/contact/RandomContactList.d.ts +0 -11
  167. package/dist/src/dht/contact/RandomContactList.js +0 -47
  168. package/dist/src/dht/contact/RandomContactList.js.map +0 -1
  169. package/dist/src/dht/contact/RingContactList.d.ts +0 -28
  170. package/dist/src/dht/contact/RingContactList.js +0 -126
  171. package/dist/src/dht/contact/RingContactList.js.map +0 -1
  172. package/dist/src/dht/contact/RpcRemote.d.ts +0 -19
  173. package/dist/src/dht/contact/RpcRemote.js +0 -61
  174. package/dist/src/dht/contact/RpcRemote.js.map +0 -1
  175. package/dist/src/dht/contact/SortedContactList.d.ts +0 -37
  176. package/dist/src/dht/contact/SortedContactList.js +0 -134
  177. package/dist/src/dht/contact/SortedContactList.js.map +0 -1
  178. package/dist/src/dht/contact/getClosestNodes.d.ts +0 -6
  179. package/dist/src/dht/contact/getClosestNodes.js +0 -19
  180. package/dist/src/dht/contact/getClosestNodes.js.map +0 -1
  181. package/dist/src/dht/contact/ringIdentifiers.d.ts +0 -16
  182. package/dist/src/dht/contact/ringIdentifiers.js +0 -54
  183. package/dist/src/dht/contact/ringIdentifiers.js.map +0 -1
  184. package/dist/src/dht/discovery/DiscoverySession.d.ts +0 -29
  185. package/dist/src/dht/discovery/DiscoverySession.js +0 -102
  186. package/dist/src/dht/discovery/DiscoverySession.js.map +0 -1
  187. package/dist/src/dht/discovery/PeerDiscovery.d.ts +0 -42
  188. package/dist/src/dht/discovery/PeerDiscovery.js +0 -193
  189. package/dist/src/dht/discovery/PeerDiscovery.js.map +0 -1
  190. package/dist/src/dht/discovery/RingDiscoverySession.d.ts +0 -28
  191. package/dist/src/dht/discovery/RingDiscoverySession.js +0 -116
  192. package/dist/src/dht/discovery/RingDiscoverySession.js.map +0 -1
  193. package/dist/src/dht/recursive-operation/RecursiveOperationManager.d.ts +0 -38
  194. package/dist/src/dht/recursive-operation/RecursiveOperationManager.js +0 -165
  195. package/dist/src/dht/recursive-operation/RecursiveOperationManager.js.map +0 -1
  196. package/dist/src/dht/recursive-operation/RecursiveOperationRpcLocal.d.ts +0 -14
  197. package/dist/src/dht/recursive-operation/RecursiveOperationRpcLocal.js +0 -26
  198. package/dist/src/dht/recursive-operation/RecursiveOperationRpcLocal.js.map +0 -1
  199. package/dist/src/dht/recursive-operation/RecursiveOperationRpcRemote.d.ts +0 -6
  200. package/dist/src/dht/recursive-operation/RecursiveOperationRpcRemote.js +0 -44
  201. package/dist/src/dht/recursive-operation/RecursiveOperationRpcRemote.js.map +0 -1
  202. package/dist/src/dht/recursive-operation/RecursiveOperationSession.d.ts +0 -45
  203. package/dist/src/dht/recursive-operation/RecursiveOperationSession.js +0 -185
  204. package/dist/src/dht/recursive-operation/RecursiveOperationSession.js.map +0 -1
  205. package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcLocal.d.ts +0 -14
  206. package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcLocal.js +0 -20
  207. package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcLocal.js.map +0 -1
  208. package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcRemote.d.ts +0 -6
  209. package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcRemote.js +0 -21
  210. package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcRemote.js.map +0 -1
  211. package/dist/src/dht/routing/DuplicateDetector.d.ts +0 -10
  212. package/dist/src/dht/routing/DuplicateDetector.js +0 -31
  213. package/dist/src/dht/routing/DuplicateDetector.js.map +0 -1
  214. package/dist/src/dht/routing/Router.d.ts +0 -35
  215. package/dist/src/dht/routing/Router.js +0 -204
  216. package/dist/src/dht/routing/Router.js.map +0 -1
  217. package/dist/src/dht/routing/RouterRpcLocal.d.ts +0 -20
  218. package/dist/src/dht/routing/RouterRpcLocal.js +0 -67
  219. package/dist/src/dht/routing/RouterRpcLocal.js.map +0 -1
  220. package/dist/src/dht/routing/RouterRpcRemote.d.ts +0 -8
  221. package/dist/src/dht/routing/RouterRpcRemote.js +0 -81
  222. package/dist/src/dht/routing/RouterRpcRemote.js.map +0 -1
  223. package/dist/src/dht/routing/RoutingSession.d.ts +0 -56
  224. package/dist/src/dht/routing/RoutingSession.js +0 -201
  225. package/dist/src/dht/routing/RoutingSession.js.map +0 -1
  226. package/dist/src/dht/routing/RoutingTablesCache.d.ts +0 -24
  227. package/dist/src/dht/routing/RoutingTablesCache.js +0 -46
  228. package/dist/src/dht/routing/RoutingTablesCache.js.map +0 -1
  229. package/dist/src/dht/routing/getPreviousPeer.d.ts +0 -2
  230. package/dist/src/dht/routing/getPreviousPeer.js +0 -12
  231. package/dist/src/dht/routing/getPreviousPeer.js.map +0 -1
  232. package/dist/src/dht/store/LocalDataStore.d.ts +0 -14
  233. package/dist/src/dht/store/LocalDataStore.js +0 -78
  234. package/dist/src/dht/store/LocalDataStore.js.map +0 -1
  235. package/dist/src/dht/store/StoreManager.d.ts +0 -32
  236. package/dist/src/dht/store/StoreManager.js +0 -126
  237. package/dist/src/dht/store/StoreManager.js.map +0 -1
  238. package/dist/src/dht/store/StoreRpcLocal.d.ts +0 -21
  239. package/dist/src/dht/store/StoreRpcLocal.js +0 -65
  240. package/dist/src/dht/store/StoreRpcLocal.js.map +0 -1
  241. package/dist/src/dht/store/StoreRpcRemote.d.ts +0 -7
  242. package/dist/src/dht/store/StoreRpcRemote.js +0 -29
  243. package/dist/src/dht/store/StoreRpcRemote.js.map +0 -1
  244. package/dist/src/exports.d.ts +0 -25
  245. package/dist/src/exports.js +0 -48
  246. package/dist/src/exports.js.map +0 -1
  247. package/dist/src/helpers/AddressTools.d.ts +0 -2
  248. package/dist/src/helpers/AddressTools.js +0 -32
  249. package/dist/src/helpers/AddressTools.js.map +0 -1
  250. package/dist/src/helpers/Connectivity.d.ts +0 -4
  251. package/dist/src/helpers/Connectivity.js +0 -24
  252. package/dist/src/helpers/Connectivity.js.map +0 -1
  253. package/dist/src/helpers/browser/isBrowserEnvironment.d.ts +0 -1
  254. package/dist/src/helpers/browser/isBrowserEnvironment.js +0 -6
  255. package/dist/src/helpers/browser/isBrowserEnvironment.js.map +0 -1
  256. package/dist/src/helpers/browser/isBrowserEnvironment_override.d.ts +0 -1
  257. package/dist/src/helpers/browser/isBrowserEnvironment_override.js +0 -7
  258. package/dist/src/helpers/browser/isBrowserEnvironment_override.js.map +0 -1
  259. package/dist/src/helpers/createPeerDescriptor.d.ts +0 -3
  260. package/dist/src/helpers/createPeerDescriptor.js +0 -58
  261. package/dist/src/helpers/createPeerDescriptor.js.map +0 -1
  262. package/dist/src/helpers/createPeerDescriptorSignaturePayload.d.ts +0 -2
  263. package/dist/src/helpers/createPeerDescriptorSignaturePayload.js +0 -30
  264. package/dist/src/helpers/createPeerDescriptorSignaturePayload.js.map +0 -1
  265. package/dist/src/helpers/debugHelpers.d.ts +0 -3
  266. package/dist/src/helpers/debugHelpers.js +0 -11
  267. package/dist/src/helpers/debugHelpers.js.map +0 -1
  268. package/dist/src/helpers/errors.d.ts +0 -72
  269. package/dist/src/helpers/errors.js +0 -97
  270. package/dist/src/helpers/errors.js.map +0 -1
  271. package/dist/src/helpers/offering.d.ts +0 -4
  272. package/dist/src/helpers/offering.js +0 -18
  273. package/dist/src/helpers/offering.js.map +0 -1
  274. package/dist/src/helpers/protoClasses.d.ts +0 -2
  275. package/dist/src/helpers/protoClasses.js +0 -32
  276. package/dist/src/helpers/protoClasses.js.map +0 -1
  277. package/dist/src/helpers/protoToString.d.ts +0 -2
  278. package/dist/src/helpers/protoToString.js +0 -19
  279. package/dist/src/helpers/protoToString.js.map +0 -1
  280. package/dist/src/helpers/version.d.ts +0 -6
  281. package/dist/src/helpers/version.js +0 -38
  282. package/dist/src/helpers/version.js.map +0 -1
  283. package/dist/src/identifiers.d.ts +0 -10
  284. package/dist/src/identifiers.js +0 -31
  285. package/dist/src/identifiers.js.map +0 -1
  286. package/dist/src/rpc-protocol/DhtCallContext.d.ts +0 -12
  287. package/dist/src/rpc-protocol/DhtCallContext.js +0 -17
  288. package/dist/src/rpc-protocol/DhtCallContext.js.map +0 -1
  289. package/dist/src/rpc-protocol/DhtRpcOptions.d.ts +0 -10
  290. package/dist/src/rpc-protocol/DhtRpcOptions.js +0 -3
  291. package/dist/src/rpc-protocol/DhtRpcOptions.js.map +0 -1
  292. package/dist/src/transport/ITransport.d.ts +0 -31
  293. package/dist/src/transport/ITransport.js +0 -9
  294. package/dist/src/transport/ITransport.js.map +0 -1
  295. package/dist/src/transport/ListeningRpcCommunicator.d.ts +0 -11
  296. package/dist/src/transport/ListeningRpcCommunicator.js +0 -31
  297. package/dist/src/transport/ListeningRpcCommunicator.js.map +0 -1
  298. package/dist/src/transport/RoutingRpcCommunicator.d.ts +0 -10
  299. package/dist/src/transport/RoutingRpcCommunicator.js +0 -60
  300. package/dist/src/transport/RoutingRpcCommunicator.js.map +0 -1
  301. package/dist/src/types/ServiceID.d.ts +0 -1
  302. package/dist/src/types/ServiceID.js +0 -3
  303. package/dist/src/types/ServiceID.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"DhtRpc.js","sourceRoot":"","sources":["../../../../../generated/packages/d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AE,oBAAoB,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EAAE,wBAAgB,EAAE,CAAC,EAAE,aAAK,EAAE;IAC1E,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EAAE,yBAAiB,EAAE,CAAC,EAAE,aAAK,EAAE;CACtE,CAAC,CAAC;AACH;;GAEG;AACU,QAAA,cAAc,GAAG,IAAI,yBAAW,CAAC,oBAAoB,EAAE;IAChE,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EAAE,gCAAwB,EAAE,CAAC,EAAE,iCAAyB,EAAE;IACrG,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EAAE,gCAAwB,EAAE,CAAC,EAAE,iCAAyB,EAAE;IACrG,EAAE,IAAI,EAAE,0BAA0B,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EAAE,uCAA+B,EAAE,CAAC,EAAE,wCAAgC,EAAE;CAC7H,CAAC,CAAC"}
@@ -1,168 +0,0 @@
1
- import { ExternalFindClosestNodesResponse } from "./DhtRpc";
2
- import { ExternalFindClosestNodesRequest } from "./DhtRpc";
3
- import { ExternalStoreDataResponse } from "./DhtRpc";
4
- import { ExternalStoreDataRequest } from "./DhtRpc";
5
- import { ExternalFetchDataResponse } from "./DhtRpc";
6
- import { ExternalFetchDataRequest } from "./DhtRpc";
7
- import { SetPrivateRequest } from "./DhtRpc";
8
- import { DisconnectNotice } from "./DhtRpc";
9
- import { UnlockRequest } from "./DhtRpc";
10
- import { LockResponse } from "./DhtRpc";
11
- import { LockRequest } from "./DhtRpc";
12
- import { IceCandidate } from "./DhtRpc";
13
- import { RtcAnswer } from "./DhtRpc";
14
- import { RtcOffer } from "./DhtRpc";
15
- import { WebrtcConnectionRequest } from "./DhtRpc";
16
- import { WebsocketConnectionRequest } from "./DhtRpc";
17
- import { RecursiveOperationResponse } from "./DhtRpc";
18
- import { ReplicateDataRequest } from "./DhtRpc";
19
- import { StoreDataResponse } from "./DhtRpc";
20
- import { StoreDataRequest } from "./DhtRpc";
21
- import { RouteMessageAck } from "./DhtRpc";
22
- import { RouteMessageWrapper } from "./DhtRpc";
23
- import { Empty } from "../../../google/protobuf/empty";
24
- import { LeaveNotice } from "./DhtRpc";
25
- import { PingResponse } from "./DhtRpc";
26
- import { PingRequest } from "./DhtRpc";
27
- import { ClosestRingPeersResponse } from "./DhtRpc";
28
- import { ClosestRingPeersRequest } from "./DhtRpc";
29
- import { ClosestPeersResponse } from "./DhtRpc";
30
- import { ClosestPeersRequest } from "./DhtRpc";
31
- import { ServerCallContext } from "@protobuf-ts/runtime-rpc";
32
- /**
33
- * @generated from protobuf service dht.DhtNodeRpc
34
- */
35
- export interface IDhtNodeRpc<T = ServerCallContext> {
36
- /**
37
- * TODO rename to getClosestNeighbors (breaking change)
38
- *
39
- * @generated from protobuf rpc: getClosestPeers
40
- */
41
- getClosestPeers(request: ClosestPeersRequest, context: T): Promise<ClosestPeersResponse>;
42
- /**
43
- * TODO rename to getClosestRingContacts (breaking change)
44
- *
45
- * @generated from protobuf rpc: getClosestRingPeers
46
- */
47
- getClosestRingPeers(request: ClosestRingPeersRequest, context: T): Promise<ClosestRingPeersResponse>;
48
- /**
49
- * @generated from protobuf rpc: ping
50
- */
51
- ping(request: PingRequest, context: T): Promise<PingResponse>;
52
- /**
53
- * @generated from protobuf rpc: leaveNotice
54
- */
55
- leaveNotice(request: LeaveNotice, context: T): Promise<Empty>;
56
- }
57
- /**
58
- * @generated from protobuf service dht.RouterRpc
59
- */
60
- export interface IRouterRpc<T = ServerCallContext> {
61
- /**
62
- * @generated from protobuf rpc: routeMessage
63
- */
64
- routeMessage(request: RouteMessageWrapper, context: T): Promise<RouteMessageAck>;
65
- /**
66
- * @generated from protobuf rpc: forwardMessage
67
- */
68
- forwardMessage(request: RouteMessageWrapper, context: T): Promise<RouteMessageAck>;
69
- }
70
- /**
71
- * @generated from protobuf service dht.RecursiveOperationRpc
72
- */
73
- export interface IRecursiveOperationRpc<T = ServerCallContext> {
74
- /**
75
- * @generated from protobuf rpc: routeRequest
76
- */
77
- routeRequest(request: RouteMessageWrapper, context: T): Promise<RouteMessageAck>;
78
- }
79
- /**
80
- * @generated from protobuf service dht.StoreRpc
81
- */
82
- export interface IStoreRpc<T = ServerCallContext> {
83
- /**
84
- * @generated from protobuf rpc: storeData
85
- */
86
- storeData(request: StoreDataRequest, context: T): Promise<StoreDataResponse>;
87
- /**
88
- * @generated from protobuf rpc: replicateData
89
- */
90
- replicateData(request: ReplicateDataRequest, context: T): Promise<Empty>;
91
- }
92
- /**
93
- * @generated from protobuf service dht.RecursiveOperationSessionRpc
94
- */
95
- export interface IRecursiveOperationSessionRpc<T = ServerCallContext> {
96
- /**
97
- * @generated from protobuf rpc: sendResponse
98
- */
99
- sendResponse(request: RecursiveOperationResponse, context: T): Promise<Empty>;
100
- }
101
- /**
102
- * @generated from protobuf service dht.WebsocketClientConnectorRpc
103
- */
104
- export interface IWebsocketClientConnectorRpc<T = ServerCallContext> {
105
- /**
106
- * @generated from protobuf rpc: requestConnection
107
- */
108
- requestConnection(request: WebsocketConnectionRequest, context: T): Promise<Empty>;
109
- }
110
- /**
111
- * @generated from protobuf service dht.WebrtcConnectorRpc
112
- */
113
- export interface IWebrtcConnectorRpc<T = ServerCallContext> {
114
- /**
115
- * @generated from protobuf rpc: requestConnection
116
- */
117
- requestConnection(request: WebrtcConnectionRequest, context: T): Promise<Empty>;
118
- /**
119
- * @generated from protobuf rpc: rtcOffer
120
- */
121
- rtcOffer(request: RtcOffer, context: T): Promise<Empty>;
122
- /**
123
- * @generated from protobuf rpc: rtcAnswer
124
- */
125
- rtcAnswer(request: RtcAnswer, context: T): Promise<Empty>;
126
- /**
127
- * @generated from protobuf rpc: iceCandidate
128
- */
129
- iceCandidate(request: IceCandidate, context: T): Promise<Empty>;
130
- }
131
- /**
132
- * @generated from protobuf service dht.ConnectionLockRpc
133
- */
134
- export interface IConnectionLockRpc<T = ServerCallContext> {
135
- /**
136
- * @generated from protobuf rpc: lockRequest
137
- */
138
- lockRequest(request: LockRequest, context: T): Promise<LockResponse>;
139
- /**
140
- * @generated from protobuf rpc: unlockRequest
141
- */
142
- unlockRequest(request: UnlockRequest, context: T): Promise<Empty>;
143
- /**
144
- * @generated from protobuf rpc: gracefulDisconnect
145
- */
146
- gracefulDisconnect(request: DisconnectNotice, context: T): Promise<Empty>;
147
- /**
148
- * @generated from protobuf rpc: setPrivate
149
- */
150
- setPrivate(request: SetPrivateRequest, context: T): Promise<Empty>;
151
- }
152
- /**
153
- * @generated from protobuf service dht.ExternalApiRpc
154
- */
155
- export interface IExternalApiRpc<T = ServerCallContext> {
156
- /**
157
- * @generated from protobuf rpc: externalFetchData
158
- */
159
- externalFetchData(request: ExternalFetchDataRequest, context: T): Promise<ExternalFetchDataResponse>;
160
- /**
161
- * @generated from protobuf rpc: externalStoreData
162
- */
163
- externalStoreData(request: ExternalStoreDataRequest, context: T): Promise<ExternalStoreDataResponse>;
164
- /**
165
- * @generated from protobuf rpc: externalFindClosestNodes
166
- */
167
- externalFindClosestNodes(request: ExternalFindClosestNodesRequest, context: T): Promise<ExternalFindClosestNodesResponse>;
168
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=DhtRpc.server.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DhtRpc.server.js","sourceRoot":"","sources":["../../../../../generated/packages/dht/protos/DhtRpc.server.ts"],"names":[],"mappings":""}
@@ -1,87 +0,0 @@
1
- import { MessageType } from "@protobuf-ts/runtime";
2
- import { Empty } from "../../../google/protobuf/empty";
3
- import { Any } from "../../../google/protobuf/any";
4
- /**
5
- * @generated from protobuf message protorpc.RpcMessage
6
- */
7
- export interface RpcMessage {
8
- /**
9
- * @generated from protobuf field: map<string, string> header = 1
10
- */
11
- header: {
12
- [key: string]: string;
13
- };
14
- /**
15
- * @generated from protobuf field: google.protobuf.Any body = 2
16
- */
17
- body?: Any;
18
- /**
19
- * @generated from protobuf field: string requestId = 3
20
- */
21
- requestId: string;
22
- /**
23
- * @generated from protobuf field: optional protorpc.RpcErrorType errorType = 4
24
- */
25
- errorType?: RpcErrorType;
26
- /**
27
- * @generated from protobuf field: optional string errorClassName = 5
28
- */
29
- errorClassName?: string;
30
- /**
31
- * @generated from protobuf field: optional string errorCode = 6
32
- */
33
- errorCode?: string;
34
- /**
35
- * @generated from protobuf field: optional string errorMessage = 7
36
- */
37
- errorMessage?: string;
38
- }
39
- /**
40
- * @generated from protobuf message protorpc.Mnfo2uhnf92hvqi2nviouq2hv9puhq
41
- */
42
- export interface Mnfo2uhnf92hvqi2nviouq2hv9puhq {
43
- /**
44
- * @generated from protobuf field: google.protobuf.Empty empty = 1
45
- */
46
- empty?: Empty;
47
- }
48
- /**
49
- * @generated from protobuf enum protorpc.RpcErrorType
50
- */
51
- export declare enum RpcErrorType {
52
- /**
53
- * @generated from protobuf enum value: SERVER_TIMEOUT = 0;
54
- */
55
- SERVER_TIMEOUT = 0,
56
- /**
57
- * @generated from protobuf enum value: CLIENT_TIMEOUT = 1;
58
- */
59
- CLIENT_TIMEOUT = 1,
60
- /**
61
- * @generated from protobuf enum value: UNKNOWN_RPC_METHOD = 2;
62
- */
63
- UNKNOWN_RPC_METHOD = 2,
64
- /**
65
- * @generated from protobuf enum value: CLIENT_ERROR = 3;
66
- */
67
- CLIENT_ERROR = 3,
68
- /**
69
- * @generated from protobuf enum value: SERVER_ERROR = 4;
70
- */
71
- SERVER_ERROR = 4
72
- }
73
- declare class RpcMessage$Type extends MessageType<RpcMessage> {
74
- constructor();
75
- }
76
- /**
77
- * @generated MessageType for protobuf message protorpc.RpcMessage
78
- */
79
- export declare const RpcMessage: RpcMessage$Type;
80
- declare class Mnfo2uhnf92hvqi2nviouq2hv9puhq$Type extends MessageType<Mnfo2uhnf92hvqi2nviouq2hv9puhq> {
81
- constructor();
82
- }
83
- /**
84
- * @generated MessageType for protobuf message protorpc.Mnfo2uhnf92hvqi2nviouq2hv9puhq
85
- */
86
- export declare const Mnfo2uhnf92hvqi2nviouq2hv9puhq: Mnfo2uhnf92hvqi2nviouq2hv9puhq$Type;
87
- export {};
@@ -1,66 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Mnfo2uhnf92hvqi2nviouq2hv9puhq = exports.RpcMessage = exports.RpcErrorType = void 0;
4
- // @generated by protobuf-ts 2.11.1 with parameter server_generic,generate_dependencies,long_type_number
5
- // @generated from protobuf file "packages/proto-rpc/protos/ProtoRpc.proto" (package "protorpc", syntax proto3)
6
- // tslint:disable
7
- const runtime_1 = require("@protobuf-ts/runtime");
8
- const empty_1 = require("../../../google/protobuf/empty");
9
- const any_1 = require("../../../google/protobuf/any");
10
- /**
11
- * @generated from protobuf enum protorpc.RpcErrorType
12
- */
13
- var RpcErrorType;
14
- (function (RpcErrorType) {
15
- /**
16
- * @generated from protobuf enum value: SERVER_TIMEOUT = 0;
17
- */
18
- RpcErrorType[RpcErrorType["SERVER_TIMEOUT"] = 0] = "SERVER_TIMEOUT";
19
- /**
20
- * @generated from protobuf enum value: CLIENT_TIMEOUT = 1;
21
- */
22
- RpcErrorType[RpcErrorType["CLIENT_TIMEOUT"] = 1] = "CLIENT_TIMEOUT";
23
- /**
24
- * @generated from protobuf enum value: UNKNOWN_RPC_METHOD = 2;
25
- */
26
- RpcErrorType[RpcErrorType["UNKNOWN_RPC_METHOD"] = 2] = "UNKNOWN_RPC_METHOD";
27
- /**
28
- * @generated from protobuf enum value: CLIENT_ERROR = 3;
29
- */
30
- RpcErrorType[RpcErrorType["CLIENT_ERROR"] = 3] = "CLIENT_ERROR";
31
- /**
32
- * @generated from protobuf enum value: SERVER_ERROR = 4;
33
- */
34
- RpcErrorType[RpcErrorType["SERVER_ERROR"] = 4] = "SERVER_ERROR";
35
- })(RpcErrorType || (exports.RpcErrorType = RpcErrorType = {}));
36
- // @generated message type with reflection information, may provide speed optimized methods
37
- class RpcMessage$Type extends runtime_1.MessageType {
38
- constructor() {
39
- super("protorpc.RpcMessage", [
40
- { no: 1, name: "header", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
41
- { no: 2, name: "body", kind: "message", T: () => any_1.Any },
42
- { no: 3, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
43
- { no: 4, name: "errorType", kind: "enum", opt: true, T: () => ["protorpc.RpcErrorType", RpcErrorType] },
44
- { no: 5, name: "errorClassName", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
45
- { no: 6, name: "errorCode", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
46
- { no: 7, name: "errorMessage", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
47
- ]);
48
- }
49
- }
50
- /**
51
- * @generated MessageType for protobuf message protorpc.RpcMessage
52
- */
53
- exports.RpcMessage = new RpcMessage$Type();
54
- // @generated message type with reflection information, may provide speed optimized methods
55
- class Mnfo2uhnf92hvqi2nviouq2hv9puhq$Type extends runtime_1.MessageType {
56
- constructor() {
57
- super("protorpc.Mnfo2uhnf92hvqi2nviouq2hv9puhq", [
58
- { no: 1, name: "empty", kind: "message", T: () => empty_1.Empty }
59
- ]);
60
- }
61
- }
62
- /**
63
- * @generated MessageType for protobuf message protorpc.Mnfo2uhnf92hvqi2nviouq2hv9puhq
64
- */
65
- exports.Mnfo2uhnf92hvqi2nviouq2hv9puhq = new Mnfo2uhnf92hvqi2nviouq2hv9puhq$Type();
66
- //# sourceMappingURL=ProtoRpc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProtoRpc.js","sourceRoot":"","sources":["../../../../../generated/packages/proto-rpc/protos/ProtoRpc.ts"],"names":[],"mappings":";;;AAAA,wGAAwG;AACxG,+GAA+G;AAC/G,iBAAiB;AACjB,kDAAmD;AACnD,0DAAuD;AACvD,sDAAmD;AAgDn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I,EAAE,CAAC,EAAE,CAAC,CAAC,qBAAqB,EAAE;YACnF,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,qBAAqB,EAAE;SACzF,CAAC,CAAC;IACP,CAAC;CACJ;AACD;;GAEG;AACU,QAAA,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;AAChD,2FAA2F;AAC3F,MAAM,mCAAoC,SAAQ,qBAA2C;IACzF;QACI,KAAK,CAAC,yCAAyC,EAAE;YAC7C,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,aAAK,EAAE;SAC5D,CAAC,CAAC;IACP,CAAC;CACJ;AACD;;GAEG;AACU,QAAA,8BAA8B,GAAG,IAAI,mCAAmC,EAAE,CAAC"}
package/dist/package.json DELETED
@@ -1,61 +0,0 @@
1
- {
2
- "name": "@streamr/dht",
3
- "version": "103.1.2",
4
- "description": "Streamr Network DHT",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/streamr-dev/network.git",
8
- "directory": "packages/dht"
9
- },
10
- "license": "STREAMR NETWORK OPEN SOURCE LICENSE",
11
- "author": "Streamr Network AG <contact@streamr.network>",
12
- "files": [
13
- "dist",
14
- "!*.tsbuildinfo",
15
- "README.md"
16
- ],
17
- "dependencies": {
18
- "@js-sdsl/ordered-map": "^4.4.2",
19
- "@protobuf-ts/runtime": "^2.8.2",
20
- "@protobuf-ts/runtime-rpc": "^2.8.2",
21
- "@streamr/autocertifier-client": "103.1.2",
22
- "@streamr/cdn-location": "103.1.2",
23
- "@streamr/geoip-location": "103.1.2",
24
- "@streamr/proto-rpc": "103.1.2",
25
- "@streamr/utils": "103.1.2",
26
- "eventemitter3": "^5.0.0",
27
- "heap": "^0.2.6",
28
- "ipaddr.js": "^2.0.1",
29
- "k-bucket": "^5.1.0",
30
- "lodash": "^4.17.21",
31
- "lru-cache": "^11.2.2",
32
- "node-datachannel": "^0.27.0",
33
- "uuid": "^11.1.0",
34
- "websocket": "^1.0.34",
35
- "ws": "^8.18.3"
36
- },
37
- "devDependencies": {
38
- "@streamr/browser-test-runner": "^0.0.1",
39
- "@streamr/test-utils": "103.1.2",
40
- "@types/heap": "^0.2.35",
41
- "@types/k-bucket": "^5.0.1",
42
- "@types/lodash": "^4.17.20",
43
- "@types/websocket": "^1.0.10",
44
- "@types/ws": "^8.18.1",
45
- "jest-leak-detector": "^27.3.1",
46
- "jest-matcher-utils": "^30.0.5",
47
- "ts-essentials": "^10.1.1",
48
- "ts-node": "^10.9.2"
49
- },
50
- "optionalDependencies": {
51
- "bufferutil": "^4.0.9",
52
- "utf-8-validate": "^6.0.5"
53
- },
54
- "main": "./src/exports.js",
55
- "types": "./src/exports.d.ts",
56
- "browser": {
57
- "./src/connection/webrtc/NodeWebrtcConnection.js": "./src/connection/webrtc/BrowserWebrtcConnection.js",
58
- "./src/connection/websocket/NodeWebsocketClientConnection.js": "./src/connection/websocket/BrowserWebsocketClientConnection.js",
59
- "./src/helpers/browser/isBrowserEnvironment.js": "./src/helpers/browser/isBrowserEnvironment_override.js"
60
- }
61
- }
@@ -1,12 +0,0 @@
1
- import EventEmitter from 'eventemitter3';
2
- import { PeerDescriptor } from '../../generated/packages/dht/protos/DhtRpc';
3
- import { ConnectionID, ConnectionType, ConnectionEvents } from './IConnection';
4
- export declare class Connection extends EventEmitter<ConnectionEvents> {
5
- connectionId: ConnectionID;
6
- connectionType: ConnectionType;
7
- private peerDescriptor?;
8
- constructor(connectionType: ConnectionType);
9
- setPeerDescriptor(peerDescriptor: PeerDescriptor): void;
10
- getPeerDescriptor(): PeerDescriptor | undefined;
11
- }
12
- export declare const createRandomConnectionId: () => ConnectionID;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createRandomConnectionId = exports.Connection = void 0;
7
- const eventemitter3_1 = __importDefault(require("eventemitter3"));
8
- const uuid_1 = require("uuid");
9
- class Connection extends eventemitter3_1.default {
10
- connectionId;
11
- connectionType;
12
- peerDescriptor;
13
- constructor(connectionType) {
14
- super();
15
- this.connectionId = (0, exports.createRandomConnectionId)();
16
- this.connectionType = connectionType;
17
- }
18
- setPeerDescriptor(peerDescriptor) {
19
- this.peerDescriptor = peerDescriptor;
20
- }
21
- getPeerDescriptor() {
22
- return this.peerDescriptor;
23
- }
24
- }
25
- exports.Connection = Connection;
26
- const createRandomConnectionId = () => {
27
- return (0, uuid_1.v4)();
28
- };
29
- exports.createRandomConnectionId = createRandomConnectionId;
30
- //# sourceMappingURL=Connection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../src/connection/Connection.ts"],"names":[],"mappings":";;;;;;AAAA,kEAAwC;AAGxC,+BAAiC;AAEjC,MAAa,UAAW,SAAQ,uBAA8B;IACnD,YAAY,CAAc;IAC1B,cAAc,CAAgB;IAC7B,cAAc,CAAiB;IAEvC,YAAY,cAA8B;QACtC,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,YAAY,GAAG,IAAA,gCAAwB,GAAE,CAAA;QAC9C,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;IACxC,CAAC;IAED,iBAAiB,CAAC,cAA8B;QAC5C,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;IACxC,CAAC;IAED,iBAAiB;QACb,OAAO,IAAI,CAAC,cAAc,CAAA;IAC9B,CAAC;CACJ;AAlBD,gCAkBC;AAEM,MAAM,wBAAwB,GAAG,GAAiB,EAAE;IACvD,OAAO,IAAA,SAAI,GAAkB,CAAA;AACjC,CAAC,CAAA;AAFY,QAAA,wBAAwB,4BAEpC"}
@@ -1,22 +0,0 @@
1
- import { ServerCallContext } from '@protobuf-ts/runtime-rpc';
2
- import { Empty } from '../../generated/google/protobuf/empty';
3
- import { DisconnectNotice, LockRequest, LockResponse, PeerDescriptor, UnlockRequest, SetPrivateRequest } from '../../generated/packages/dht/protos/DhtRpc';
4
- import { IConnectionLockRpc } from '../../generated/packages/dht/protos/DhtRpc.server';
5
- import { LockID } from './ConnectionLockStates';
6
- import { DhtAddress } from '../identifiers';
7
- interface ConnectionLockRpcLocalOptions {
8
- addRemoteLocked: (id: DhtAddress, lockId: LockID) => void;
9
- removeRemoteLocked: (id: DhtAddress, lockId: LockID) => void;
10
- closeConnection: (peerDescriptor: PeerDescriptor, gracefulLeave: boolean, reason?: string) => Promise<void>;
11
- getLocalPeerDescriptor: () => PeerDescriptor;
12
- setPrivate: (id: DhtAddress, isPrivate: boolean) => void;
13
- }
14
- export declare class ConnectionLockRpcLocal implements IConnectionLockRpc {
15
- private readonly options;
16
- constructor(options: ConnectionLockRpcLocalOptions);
17
- lockRequest(lockRequest: LockRequest, context: ServerCallContext): Promise<LockResponse>;
18
- unlockRequest(unlockRequest: UnlockRequest, context: ServerCallContext): Promise<Empty>;
19
- gracefulDisconnect(disconnectNotice: DisconnectNotice, context: ServerCallContext): Promise<Empty>;
20
- setPrivate(request: SetPrivateRequest, context: ServerCallContext): Promise<Empty>;
21
- }
22
- export {};
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConnectionLockRpcLocal = void 0;
4
- const utils_1 = require("@streamr/utils");
5
- const DhtRpc_1 = require("../../generated/packages/dht/protos/DhtRpc");
6
- const ConnectionManager_1 = require("./ConnectionManager");
7
- const identifiers_1 = require("../identifiers");
8
- const logger = new utils_1.Logger(module);
9
- class ConnectionLockRpcLocal {
10
- options;
11
- constructor(options) {
12
- this.options = options;
13
- }
14
- async lockRequest(lockRequest, context) {
15
- const senderPeerDescriptor = context.incomingSourceDescriptor;
16
- if ((0, identifiers_1.areEqualPeerDescriptors)(senderPeerDescriptor, this.options.getLocalPeerDescriptor())) {
17
- const response = {
18
- accepted: false
19
- };
20
- return response;
21
- }
22
- const remoteNodeId = (0, identifiers_1.toNodeId)(senderPeerDescriptor);
23
- this.options.addRemoteLocked(remoteNodeId, lockRequest.lockId);
24
- const response = {
25
- accepted: true
26
- };
27
- return response;
28
- }
29
- async unlockRequest(unlockRequest, context) {
30
- const senderPeerDescriptor = context.incomingSourceDescriptor;
31
- const nodeId = (0, identifiers_1.toNodeId)(senderPeerDescriptor);
32
- this.options.removeRemoteLocked(nodeId, unlockRequest.lockId);
33
- return {};
34
- }
35
- async gracefulDisconnect(disconnectNotice, context) {
36
- const senderPeerDescriptor = context.incomingSourceDescriptor;
37
- logger.trace((0, ConnectionManager_1.getNodeIdOrUnknownFromPeerDescriptor)(senderPeerDescriptor) + ' received gracefulDisconnect notice');
38
- if (disconnectNotice.disconnectMode === DhtRpc_1.DisconnectMode.LEAVING) {
39
- await this.options.closeConnection(senderPeerDescriptor, true, 'graceful leave notified');
40
- }
41
- else {
42
- await this.options.closeConnection(senderPeerDescriptor, false, 'graceful disconnect notified');
43
- }
44
- return {};
45
- }
46
- async setPrivate(request, context) {
47
- const senderPeerDescriptor = context.incomingSourceDescriptor;
48
- const senderId = (0, identifiers_1.toNodeId)(senderPeerDescriptor);
49
- this.options.setPrivate(senderId, request.isPrivate);
50
- return {};
51
- }
52
- }
53
- exports.ConnectionLockRpcLocal = ConnectionLockRpcLocal;
54
- //# sourceMappingURL=ConnectionLockRpcLocal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConnectionLockRpcLocal.js","sourceRoot":"","sources":["../../../src/connection/ConnectionLockRpcLocal.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAEvC,uEAQmD;AAGnD,2DAA0E;AAE1E,gDAA8E;AAU9E,MAAM,MAAM,GAAG,IAAI,cAAM,CAAC,MAAM,CAAC,CAAA;AAEjC,MAAa,sBAAsB;IAEd,OAAO,CAA+B;IAEvD,YAAY,OA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oBAAoB,EAAE,IAAI,EAAE,yBAAyB,CAAC,CAAA;QAC7F,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,oBAAoB,EAAE,KAAK,EAAE,8BAA8B,CAAC,CAAA;QACnG,CAAC;QACD,OAAO,EAAE,CAAA;IACb,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,OAA0B,EAAE,OAA0B;QACnE,MAAM,oBAAoB,GAAI,OAA0B,CAAC,wBAAyB,CAAA;QAClF,MAAM,QAAQ,GAAG,IAAA,sBAAQ,EAAC,oBAAoB,CAAC,CAAA;QAC/C,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,OAAO,CAAC,SAAS,CAAC,CAAA;QACpD,OAAO,EAAE,CAAA;IACb,CAAC;CACJ;AAjDD,wDAiDC"}
@@ -1,10 +0,0 @@
1
- import { RpcRemote } from '../dht/contact/RpcRemote';
2
- import { DisconnectMode } from '../../generated/packages/dht/protos/DhtRpc';
3
- import { ConnectionLockRpcClient } from '../../generated/packages/dht/protos/DhtRpc.client';
4
- import { LockID } from './ConnectionLockStates';
5
- export declare class ConnectionLockRpcRemote extends RpcRemote<ConnectionLockRpcClient> {
6
- lockRequest(lockId: LockID): Promise<boolean>;
7
- unlockRequest(lockId: LockID): void;
8
- gracefulDisconnect(disconnectMode: DisconnectMode): Promise<void>;
9
- setPrivate(isPrivate: boolean): Promise<void>;
10
- }
@@ -1,61 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConnectionLockRpcRemote = void 0;
4
- const utils_1 = require("@streamr/utils");
5
- const RpcRemote_1 = require("../dht/contact/RpcRemote");
6
- const identifiers_1 = require("../identifiers");
7
- const logger = new utils_1.Logger(module);
8
- class ConnectionLockRpcRemote extends RpcRemote_1.RpcRemote {
9
- async lockRequest(lockId) {
10
- logger.trace(`Requesting locked connection to ${(0, identifiers_1.toNodeId)(this.getPeerDescriptor())}`);
11
- const request = {
12
- lockId
13
- };
14
- const options = this.formDhtRpcOptions();
15
- try {
16
- const res = await this.getClient().lockRequest(request, options);
17
- return res.accepted;
18
- }
19
- catch (err) {
20
- logger.debug('Connection lock rejected', { err });
21
- return false;
22
- }
23
- }
24
- unlockRequest(lockId) {
25
- logger.trace(`Requesting connection to be unlocked from ${(0, identifiers_1.toNodeId)(this.getPeerDescriptor())}`);
26
- const request = {
27
- lockId
28
- };
29
- const options = this.formDhtRpcOptions({
30
- notification: true
31
- });
32
- this.getClient().unlockRequest(request, options).catch((_e) => {
33
- logger.trace('failed to send unlockRequest');
34
- });
35
- }
36
- async gracefulDisconnect(disconnectMode) {
37
- logger.trace(`Notifying a graceful disconnect to ${(0, identifiers_1.toNodeId)(this.getPeerDescriptor())}`);
38
- const request = {
39
- disconnectMode
40
- };
41
- const options = this.formDhtRpcOptions({
42
- connect: false,
43
- sendIfStopped: true,
44
- timeout: 2000 // TODO use options option or named constant?
45
- });
46
- await this.getClient().gracefulDisconnect(request, options);
47
- }
48
- async setPrivate(isPrivate) {
49
- logger.trace(`Setting isPrivate: ${isPrivate} for ${(0, identifiers_1.toNodeId)(this.getPeerDescriptor())}`);
50
- const request = {
51
- isPrivate
52
- };
53
- const options = this.formDhtRpcOptions({
54
- connect: false,
55
- notification: true
56
- });
57
- await this.getClient().setPrivate(request, options);
58
- }
59
- }
60
- exports.ConnectionLockRpcRemote = ConnectionLockRpcRemote;
61
- //# sourceMappingURL=ConnectionLockRpcRemote.js.map