import { WebSocketServer } from "ws"; let wss; export function init(cfg) { wss = new WebSocketServer(cfg); }