UNPKG

phecda-server

Version:

server framework that provide IOC/type-reuse/http&rpc-adaptor

15 lines (12 loc) 439 B
import WS from 'ws'; import { F as Factory } from '../../core-D1YYphEn.mjs'; import { R as RpcCtx, a as RpcServerOptions } from '../../types-BOZ8yE2L.mjs'; import 'phecda-core'; import '../../meta-DNF6Fl27.mjs'; interface WsCtx extends RpcCtx { type: 'ws'; ws: WS; wss: WS.Server; } declare function bind(wss: WS.Server, data: Awaited<ReturnType<typeof Factory>>, opts?: RpcServerOptions): void; export { type WsCtx, bind };