This commit is contained in:
hatim boufnichel 2023-11-30 16:35:25 +01:00
parent 52da2748e9
commit d5dff7d3d9

View file

@ -3,7 +3,7 @@ import Nostr from "./services/nostr/index.js"
import { NostrSend, NostrSettings } from "./services/nostr/handler.js"
import * as Types from '../proto/autogenerated/ts/types.js'
import NewNostrTransport, { NostrRequest } from '../proto/autogenerated/ts/nostr_transport.js';
const handledRequests: string[] = [] // TODO: - big memory leak here, add TTL
export default (serverMethods: Types.ServerMethods, mainHandler: Main, nostrSettings: NostrSettings): { Stop: () => void, Send: NostrSend } => {
const nostrTransport = NewNostrTransport(serverMethods, {