работаем бля работаем

This commit is contained in:
2026-05-09 03:21:44 +06:00
parent f845777bac
commit 0b148c6a7d
169 changed files with 15816 additions and 1005 deletions

View File

@@ -0,0 +1,10 @@
import type { FastifyInstance } from 'fastify'
import type { MessageSelect } from '../../../prisma/generated-client/models.ts'
export default async function (fastify: FastifyInstance) {
const { io, bus } = fastify
bus.on('chat:new-message', async (message: MessageSelect) => {
io.emit('chat:new-message', message)
})
}