ws test
This commit is contained in:
parent
42cb907cfc
commit
4de905972c
3 changed files with 7 additions and 7 deletions
|
|
@ -1,7 +1,5 @@
|
|||
import { WebSocket, WebSocketServer } from "ws";
|
||||
export const wss = new WebSocketServer({ noServer: true,
|
||||
path: "/api/v1/org/socket",
|
||||
});
|
||||
import { WebSocket } from "ws";
|
||||
import { wss } from "../app";
|
||||
|
||||
export async function sendWebSocket(data:any){
|
||||
wss.clients.forEach((client: any) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue