mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-12-07 19:59:07 +00:00
* refactor(server): tsconfigs * chore: dummy commit * fix: start.sh * chore: restore original entry scripts
13 lines
400 B
TypeScript
13 lines
400 B
TypeScript
import { CommunicationEvent } from '@app/domain';
|
|
import { Injectable } from '@nestjs/common';
|
|
import { CommunicationGateway } from '../communication.gateway';
|
|
|
|
@Injectable()
|
|
export class CommunicationRepository {
|
|
constructor(private ws: CommunicationGateway) {}
|
|
|
|
send(event: CommunicationEvent, userId: string, data: any) {
|
|
this.ws.server.to(userId).emit(event, JSON.stringify(data));
|
|
}
|
|
}
|