ws test
This commit is contained in:
parent
0f639826c3
commit
42cb907cfc
2 changed files with 5 additions and 6 deletions
|
|
@ -13,12 +13,9 @@ import { OrganizationController } from "./controllers/OrganizationController";
|
|||
import logMiddleware from "./middlewares/logs";
|
||||
import { CommandController } from "./controllers/CommandController";
|
||||
import { ProfileSalaryController } from "./controllers/ProfileSalaryController";
|
||||
import { WebSocketServer } from "ws";
|
||||
import http from "http";
|
||||
import { wss } from "../src/services/webSocket";
|
||||
|
||||
export const wss = new WebSocketServer({ noServer: true,
|
||||
path: "/api/v1/org/socket",
|
||||
});
|
||||
|
||||
async function main() {
|
||||
await AppDataSource.initialize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue