INNER CODE UNIT · JavaScript

reply

nullstack/nullstack · server/server.js:167

      async function reply() {
        let boundKlass = invokerKlass
        if (boundHash) {
          boundKlass = registry[boundHash]
          if (!(boundKlass.prototype instanceof invokerKlass)) {
            return response.status(401).json({})
          }
        }
        const method = registry[key]
        if (method !== undefined) {
          try {
            const currentContext = getCurrentContext(args)
            const result = await method.call(boundKlass, currentContext)
            response.json({ result })
          } catch (error) {
            printError(error)
            response.status(500).json({})
          }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…