https://github.com/cerjs/trpc-fastify
https://github.com/cerjs/trpc-fastify
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cerjs/trpc-fastify
- Owner: cerjs
- Created: 2025-06-25T12:38:18.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-03T08:02:04.000Z (12 months ago)
- Last Synced: 2025-08-17T00:28:52.400Z (10 months ago)
- Language: TypeScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fastify Minimal Example
## Includes
- Fastify server
- tRPC
## Reproduce this issue
```
(node:97455) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [Socket]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
```
### History Issues
- https://github.com/trpc/trpc/pull/6482
- https://github.com/trpc/trpc/issues/6455
## Usage
Run the server:
```bash
pnpm dev
```
To reproduce the issue, follow these steps:
```bash
autocannon -c 200 -d 10 -p 10 http://localhost:3001/api/trpc/greeting
```
autocannon is a npm package to test the api performance.