dphelper 3.8.0 → 3.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -3
- package/docs/README.md +0 -3
- package/docs/markdown/logging.md +2 -2
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/types/dphelper.d.ts +4 -3
package/package.json
CHANGED
package/types/dphelper.d.ts
CHANGED
|
@@ -460,16 +460,17 @@
|
|
|
460
460
|
// --- socket ---
|
|
461
461
|
interface SocketTool {
|
|
462
462
|
info: () => string
|
|
463
|
-
start: (
|
|
463
|
+
start: (server: any, name: string) => void
|
|
464
464
|
conn: (id: any, server: any, name: string) => void
|
|
465
465
|
connect: (server: any, name: string) => void
|
|
466
466
|
open: (id: any, server: any, name: string) => void
|
|
467
|
-
send: (mex: any, type?: string) => void
|
|
468
467
|
ping: (name: string) => void
|
|
469
|
-
|
|
468
|
+
send: (mex: any, name: string) => void
|
|
469
|
+
receive: (func: Function, name: string) => void
|
|
470
470
|
keepAlive: (name: string) => void
|
|
471
471
|
check: () => void
|
|
472
472
|
list: () => WebSocket[]
|
|
473
|
+
close: (name: string) => void
|
|
473
474
|
}
|
|
474
475
|
|
|
475
476
|
// --- sse ---
|