init notification

This commit is contained in:
AmirHossein Mahmoodi
2023-10-24 10:55:50 +03:30
parent b95ed3b449
commit 416e05c31e
28 changed files with 8181 additions and 1701 deletions

View File

@@ -0,0 +1,16 @@
import { Injectable } from "@nestjs/common";
import { InjectModel } from "@nestjs/sequelize";
import { SocketModel } from "./models/socket.model";
@Injectable()
export class SocketService {
constructor(
@InjectModel(SocketModel)
private socketModel: typeof SocketModel,
) {
}
ClientConnection(data) {
this.socketModel.create(data);
}
}