HonoH
Hono12mo ago
Paul

Can't integrate hono with tus server

Anyone here used Tus: @tus/server

I'm having difficulty using hono with it. Here are the different examples of using it with other providers: https://github.com/tus/tus-node-server/tree/main/packages/server#example-integrate-tus-into-express

here is what I tried:
const tusServer = new Server({
  path: '/uploads',
  datastore: new FileStore({
    directory: '/Users/paul/development/src/github/[project]/apps/hono/tmp',
  }),
});

app.all('/api/dam/uploads', (c) => {
  return tusServer.handle(c.req, c.res);
})


I keep getting: TypeError: req.on is not a function (probably from the tus server)
Was this page helpful?