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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dphelper",
3
3
  "code": "dphelper",
4
- "version": "3.8.0",
4
+ "version": "3.8.5",
5
5
  "description": "dphelper devtools for developers",
6
6
  "main": "./index.cjs",
7
7
  "browser": "./index.cjs",
@@ -460,16 +460,17 @@
460
460
  // --- socket ---
461
461
  interface SocketTool {
462
462
  info: () => string
463
- start: (element: any, server: any, name: string) => void
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
- receive: (el?: any, name?: string) => void
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 ---