(
req: FastifyRequest<{ Params: { projectId: string } }>,
reply: FastifyReply
)
| 170 | // --------------------------------------------------------------------------- |
| 171 | |
| 172 | export async function getLiveVisitors( |
| 173 | req: FastifyRequest<{ Params: { projectId: string } }>, |
| 174 | reply: FastifyReply |
| 175 | ) { |
| 176 | const projectId = await getProjectId(req as RequestWithProjectParam); |
| 177 | reply.send({ visitors: await eventBuffer.getActiveVisitorCount(projectId) }); |
| 178 | } |
| 179 | |
| 180 | // --------------------------------------------------------------------------- |
| 181 | // Analytics — active users |
nothing calls this directly
no test coverage detected