lightclaw2 0.0.1
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 +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/src/channel.d.ts +11 -0
- package/dist/src/channel.d.ts.map +1 -0
- package/dist/src/channel.js +255 -0
- package/dist/src/channel.js.map +1 -0
- package/dist/src/config.d.ts +29 -0
- package/dist/src/config.d.ts.map +1 -0
- package/dist/src/config.js +99 -0
- package/dist/src/config.js.map +1 -0
- package/dist/src/dedup.d.ts +7 -0
- package/dist/src/dedup.d.ts.map +1 -0
- package/dist/src/dedup.js +52 -0
- package/dist/src/dedup.js.map +1 -0
- package/dist/src/gateway.d.ts +16 -0
- package/dist/src/gateway.d.ts.map +1 -0
- package/dist/src/gateway.js +283 -0
- package/dist/src/gateway.js.map +1 -0
- package/dist/src/inbound.d.ts +18 -0
- package/dist/src/inbound.d.ts.map +1 -0
- package/dist/src/inbound.js +252 -0
- package/dist/src/inbound.js.map +1 -0
- package/dist/src/media.d.ts +12 -0
- package/dist/src/media.d.ts.map +1 -0
- package/dist/src/media.js +87 -0
- package/dist/src/media.js.map +1 -0
- package/dist/src/outbound.d.ts +28 -0
- package/dist/src/outbound.d.ts.map +1 -0
- package/dist/src/outbound.js +172 -0
- package/dist/src/outbound.js.map +1 -0
- package/dist/src/runtime.d.ts +4 -0
- package/dist/src/runtime.d.ts.map +1 -0
- package/dist/src/runtime.js +11 -0
- package/dist/src/runtime.js.map +1 -0
- package/dist/src/session-history.d.ts +88 -0
- package/dist/src/session-history.d.ts.map +1 -0
- package/dist/src/session-history.js +545 -0
- package/dist/src/session-history.js.map +1 -0
- package/dist/src/socket-handlers.d.ts +21 -0
- package/dist/src/socket-handlers.d.ts.map +1 -0
- package/dist/src/socket-handlers.js +120 -0
- package/dist/src/socket-handlers.js.map +1 -0
- package/dist/src/socket-registry.d.ts +53 -0
- package/dist/src/socket-registry.d.ts.map +1 -0
- package/dist/src/socket-registry.js +115 -0
- package/dist/src/socket-registry.js.map +1 -0
- package/dist/src/types.d.ts +100 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +10 -0
- package/dist/src/types.js.map +1 -0
- package/node_modules/@socket.io/component-emitter/LICENSE +24 -0
- package/node_modules/@socket.io/component-emitter/Readme.md +79 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/index.d.ts +179 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/index.js +176 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/package.json +4 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/index.d.ts +179 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/index.js +169 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/package.json +4 -0
- package/node_modules/@socket.io/component-emitter/package.json +28 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/engine.io-client/LICENSE +22 -0
- package/node_modules/engine.io-client/README.md +331 -0
- package/node_modules/engine.io-client/build/cjs/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/cjs/browser-entrypoint.js +4 -0
- package/node_modules/engine.io-client/build/cjs/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/cjs/contrib/has-cors.js +14 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseqs.js +38 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseuri.js +67 -0
- package/node_modules/engine.io-client/build/cjs/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/cjs/globals.js +26 -0
- package/node_modules/engine.io-client/build/cjs/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/cjs/globals.node.js +97 -0
- package/node_modules/engine.io-client/build/cjs/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/index.js +32 -0
- package/node_modules/engine.io-client/build/cjs/package.json +10 -0
- package/node_modules/engine.io-client/build/cjs/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/cjs/socket.js +765 -0
- package/node_modules/engine.io-client/build/cjs/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/cjs/transport.js +153 -0
- package/node_modules/engine.io-client/build/cjs/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/cjs/transports/index.js +11 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.js +60 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.js +285 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.js +44 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling.js +165 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.js +136 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.node.js +68 -0
- package/node_modules/engine.io-client/build/cjs/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/cjs/transports/webtransport.js +94 -0
- package/node_modules/engine.io-client/build/cjs/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/cjs/util.js +65 -0
- package/node_modules/engine.io-client/build/esm/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/esm/browser-entrypoint.js +2 -0
- package/node_modules/engine.io-client/build/esm/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm/contrib/has-cors.js +11 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseqs.js +34 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseuri.js +64 -0
- package/node_modules/engine.io-client/build/esm/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/esm/globals.js +22 -0
- package/node_modules/engine.io-client/build/esm/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/esm/globals.node.js +91 -0
- package/node_modules/engine.io-client/build/esm/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/index.js +15 -0
- package/node_modules/engine.io-client/build/esm/package.json +10 -0
- package/node_modules/engine.io-client/build/esm/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/esm/socket.js +727 -0
- package/node_modules/engine.io-client/build/esm/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/esm/transport.js +142 -0
- package/node_modules/engine.io-client/build/esm/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/esm/transports/index.js +8 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-fetch.js +56 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +271 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.js +17 -0
- package/node_modules/engine.io-client/build/esm/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/esm/transports/polling.js +145 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.js +125 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.node.js +41 -0
- package/node_modules/engine.io-client/build/esm/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/esm/transports/webtransport.js +80 -0
- package/node_modules/engine.io-client/build/esm/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/esm/util.js +59 -0
- package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.js +2 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js +11 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js +34 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js +64 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.js +22 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.node.js +91 -0
- package/node_modules/engine.io-client/build/esm-debug/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/index.js +15 -0
- package/node_modules/engine.io-client/build/esm-debug/package.json +10 -0
- package/node_modules/engine.io-client/build/esm-debug/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/esm-debug/socket.js +756 -0
- package/node_modules/engine.io-client/build/esm-debug/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/esm-debug/transport.js +145 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/index.js +8 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.js +56 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js +276 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js +17 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling.js +158 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.js +128 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js +41 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.js +87 -0
- package/node_modules/engine.io-client/build/esm-debug/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/esm-debug/util.js +59 -0
- package/node_modules/engine.io-client/dist/engine.io.esm.min.js +7 -0
- package/node_modules/engine.io-client/dist/engine.io.esm.min.js.map +1 -0
- package/node_modules/engine.io-client/dist/engine.io.js +3064 -0
- package/node_modules/engine.io-client/dist/engine.io.js.map +1 -0
- package/node_modules/engine.io-client/dist/engine.io.min.js +7 -0
- package/node_modules/engine.io-client/dist/engine.io.min.js.map +1 -0
- package/node_modules/engine.io-client/node_modules/ws/LICENSE +20 -0
- package/node_modules/engine.io-client/node_modules/ws/README.md +548 -0
- package/node_modules/engine.io-client/node_modules/ws/browser.js +8 -0
- package/node_modules/engine.io-client/node_modules/ws/index.js +13 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/constants.js +18 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/receiver.js +706 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/sender.js +602 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/stream.js +161 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/websocket-server.js +550 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/websocket.js +1388 -0
- package/node_modules/engine.io-client/node_modules/ws/package.json +69 -0
- package/node_modules/engine.io-client/node_modules/ws/wrapper.mjs +8 -0
- package/node_modules/engine.io-client/package.json +95 -0
- package/node_modules/engine.io-parser/LICENSE +22 -0
- package/node_modules/engine.io-parser/Readme.md +158 -0
- package/node_modules/engine.io-parser/build/cjs/commons.d.ts +14 -0
- package/node_modules/engine.io-parser/build/cjs/commons.js +19 -0
- package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.js +48 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.js +66 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.js +59 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.d.ts +4 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.js +72 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.d.ts +3 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.js +38 -0
- package/node_modules/engine.io-parser/build/cjs/index.d.ts +9 -0
- package/node_modules/engine.io-parser/build/cjs/index.js +164 -0
- package/node_modules/engine.io-parser/build/cjs/package.json +8 -0
- package/node_modules/engine.io-parser/build/esm/commons.d.ts +14 -0
- package/node_modules/engine.io-parser/build/esm/commons.js +14 -0
- package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +43 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.browser.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +62 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.js +55 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.browser.d.ts +4 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +68 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.d.ts +3 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.js +33 -0
- package/node_modules/engine.io-parser/build/esm/index.d.ts +9 -0
- package/node_modules/engine.io-parser/build/esm/index.js +156 -0
- package/node_modules/engine.io-parser/build/esm/package.json +8 -0
- package/node_modules/engine.io-parser/package.json +46 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/socket.io-client/LICENSE +21 -0
- package/node_modules/socket.io-client/README.md +29 -0
- package/node_modules/socket.io-client/build/cjs/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/cjs/browser-entrypoint.js +4 -0
- package/node_modules/socket.io-client/build/cjs/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/cjs/contrib/backo2.js +69 -0
- package/node_modules/socket.io-client/build/cjs/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/cjs/index.js +76 -0
- package/node_modules/socket.io-client/build/cjs/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/cjs/manager.js +416 -0
- package/node_modules/socket.io-client/build/cjs/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/cjs/on.js +9 -0
- package/node_modules/socket.io-client/build/cjs/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/cjs/socket.js +909 -0
- package/node_modules/socket.io-client/build/cjs/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/cjs/url.js +69 -0
- package/node_modules/socket.io-client/build/esm/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm/browser-entrypoint.js +2 -0
- package/node_modules/socket.io-client/build/esm/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/esm/contrib/backo2.js +66 -0
- package/node_modules/socket.io-client/build/esm/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/esm/index.js +58 -0
- package/node_modules/socket.io-client/build/esm/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/esm/manager.js +367 -0
- package/node_modules/socket.io-client/build/esm/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm/on.js +6 -0
- package/node_modules/socket.io-client/build/esm/package.json +5 -0
- package/node_modules/socket.io-client/build/esm/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/esm/socket.js +880 -0
- package/node_modules/socket.io-client/build/esm/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/esm/url.js +59 -0
- package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.js +2 -0
- package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.js +66 -0
- package/node_modules/socket.io-client/build/esm-debug/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/esm-debug/index.js +62 -0
- package/node_modules/socket.io-client/build/esm-debug/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/esm-debug/manager.js +386 -0
- package/node_modules/socket.io-client/build/esm-debug/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm-debug/on.js +6 -0
- package/node_modules/socket.io-client/build/esm-debug/package.json +5 -0
- package/node_modules/socket.io-client/build/esm-debug/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/esm-debug/socket.js +902 -0
- package/node_modules/socket.io-client/build/esm-debug/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/esm-debug/url.js +63 -0
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.js +4955 -0
- package/node_modules/socket.io-client/dist/socket.io.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.min.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +1 -0
- package/node_modules/socket.io-client/package.json +101 -0
- package/node_modules/socket.io-parser/LICENSE +20 -0
- package/node_modules/socket.io-parser/Readme.md +81 -0
- package/node_modules/socket.io-parser/build/cjs/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/cjs/binary.js +87 -0
- package/node_modules/socket.io-parser/build/cjs/index.d.ts +91 -0
- package/node_modules/socket.io-parser/build/cjs/index.js +359 -0
- package/node_modules/socket.io-parser/build/cjs/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/cjs/is-binary.js +54 -0
- package/node_modules/socket.io-parser/build/cjs/package.json +3 -0
- package/node_modules/socket.io-parser/build/esm/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/esm/binary.js +83 -0
- package/node_modules/socket.io-parser/build/esm/index.d.ts +91 -0
- package/node_modules/socket.io-parser/build/esm/index.js +348 -0
- package/node_modules/socket.io-parser/build/esm/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/esm/is-binary.js +50 -0
- package/node_modules/socket.io-parser/build/esm/package.json +3 -0
- package/node_modules/socket.io-parser/build/esm-debug/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/esm-debug/binary.js +83 -0
- package/node_modules/socket.io-parser/build/esm-debug/index.d.ts +91 -0
- package/node_modules/socket.io-parser/build/esm-debug/index.js +353 -0
- package/node_modules/socket.io-parser/build/esm-debug/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/esm-debug/is-binary.js +50 -0
- package/node_modules/socket.io-parser/build/esm-debug/package.json +3 -0
- package/node_modules/socket.io-parser/package.json +44 -0
- package/node_modules/xmlhttprequest-ssl/LICENSE +22 -0
- package/node_modules/xmlhttprequest-ssl/README.md +67 -0
- package/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js +689 -0
- package/node_modules/xmlhttprequest-ssl/package.json +40 -0
- package/openclaw.plugin.json +17 -0
- package/package.json +61 -0
- package/skills/lightclaw-cron/SKILL.md +381 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type ParsedUrl = {
|
|
2
|
+
source: string;
|
|
3
|
+
protocol: string;
|
|
4
|
+
authority: string;
|
|
5
|
+
userInfo: string;
|
|
6
|
+
user: string;
|
|
7
|
+
password: string;
|
|
8
|
+
host: string;
|
|
9
|
+
port: string;
|
|
10
|
+
relative: string;
|
|
11
|
+
path: string;
|
|
12
|
+
directory: string;
|
|
13
|
+
file: string;
|
|
14
|
+
query: string;
|
|
15
|
+
anchor: string;
|
|
16
|
+
pathNames: Array<string>;
|
|
17
|
+
queryKey: {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
id: string;
|
|
21
|
+
href: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* URL parser.
|
|
25
|
+
*
|
|
26
|
+
* @param uri - url
|
|
27
|
+
* @param path - the request path of the connection
|
|
28
|
+
* @param loc - An object meant to mimic window.location.
|
|
29
|
+
* Defaults to window.location.
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export declare function url(uri: string | ParsedUrl, path?: string, loc?: Location): ParsedUrl;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.url = url;
|
|
7
|
+
const engine_io_client_1 = require("engine.io-client");
|
|
8
|
+
const debug_1 = __importDefault(require("debug")); // debug()
|
|
9
|
+
const debug = (0, debug_1.default)("socket.io-client:url"); // debug()
|
|
10
|
+
/**
|
|
11
|
+
* URL parser.
|
|
12
|
+
*
|
|
13
|
+
* @param uri - url
|
|
14
|
+
* @param path - the request path of the connection
|
|
15
|
+
* @param loc - An object meant to mimic window.location.
|
|
16
|
+
* Defaults to window.location.
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
function url(uri, path = "", loc) {
|
|
20
|
+
let obj = uri;
|
|
21
|
+
// default to window.location
|
|
22
|
+
loc = loc || (typeof location !== "undefined" && location);
|
|
23
|
+
if (null == uri)
|
|
24
|
+
uri = loc.protocol + "//" + loc.host;
|
|
25
|
+
// relative path support
|
|
26
|
+
if (typeof uri === "string") {
|
|
27
|
+
if ("/" === uri.charAt(0)) {
|
|
28
|
+
if ("/" === uri.charAt(1)) {
|
|
29
|
+
uri = loc.protocol + uri;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
uri = loc.host + uri;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (!/^(https?|wss?):\/\//.test(uri)) {
|
|
36
|
+
debug("protocol-less url %s", uri);
|
|
37
|
+
if ("undefined" !== typeof loc) {
|
|
38
|
+
uri = loc.protocol + "//" + uri;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
uri = "https://" + uri;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
// parse
|
|
45
|
+
debug("parse %s", uri);
|
|
46
|
+
obj = (0, engine_io_client_1.parse)(uri);
|
|
47
|
+
}
|
|
48
|
+
// make sure we treat `localhost:80` and `localhost` equally
|
|
49
|
+
if (!obj.port) {
|
|
50
|
+
if (/^(http|ws)$/.test(obj.protocol)) {
|
|
51
|
+
obj.port = "80";
|
|
52
|
+
}
|
|
53
|
+
else if (/^(http|ws)s$/.test(obj.protocol)) {
|
|
54
|
+
obj.port = "443";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
obj.path = obj.path || "/";
|
|
58
|
+
const ipv6 = obj.host.indexOf(":") !== -1;
|
|
59
|
+
const host = ipv6 ? "[" + obj.host + "]" : obj.host;
|
|
60
|
+
// define unique id
|
|
61
|
+
obj.id = obj.protocol + "://" + host + ":" + obj.port + path;
|
|
62
|
+
// define href
|
|
63
|
+
obj.href =
|
|
64
|
+
obj.protocol +
|
|
65
|
+
"://" +
|
|
66
|
+
host +
|
|
67
|
+
(loc && loc.port === obj.port ? "" : ":" + obj.port);
|
|
68
|
+
return obj;
|
|
69
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Initialize backoff timer with `opts`.
|
|
3
|
+
*
|
|
4
|
+
* - `min` initial timeout in milliseconds [100]
|
|
5
|
+
* - `max` max timeout [10000]
|
|
6
|
+
* - `jitter` [0]
|
|
7
|
+
* - `factor` [2]
|
|
8
|
+
*
|
|
9
|
+
* @param {Object} opts
|
|
10
|
+
* @api public
|
|
11
|
+
*/
|
|
12
|
+
export declare function Backoff(opts: any): void;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Initialize backoff timer with `opts`.
|
|
3
|
+
*
|
|
4
|
+
* - `min` initial timeout in milliseconds [100]
|
|
5
|
+
* - `max` max timeout [10000]
|
|
6
|
+
* - `jitter` [0]
|
|
7
|
+
* - `factor` [2]
|
|
8
|
+
*
|
|
9
|
+
* @param {Object} opts
|
|
10
|
+
* @api public
|
|
11
|
+
*/
|
|
12
|
+
export function Backoff(opts) {
|
|
13
|
+
opts = opts || {};
|
|
14
|
+
this.ms = opts.min || 100;
|
|
15
|
+
this.max = opts.max || 10000;
|
|
16
|
+
this.factor = opts.factor || 2;
|
|
17
|
+
this.jitter = opts.jitter > 0 && opts.jitter <= 1 ? opts.jitter : 0;
|
|
18
|
+
this.attempts = 0;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Return the backoff duration.
|
|
22
|
+
*
|
|
23
|
+
* @return {Number}
|
|
24
|
+
* @api public
|
|
25
|
+
*/
|
|
26
|
+
Backoff.prototype.duration = function () {
|
|
27
|
+
var ms = this.ms * Math.pow(this.factor, this.attempts++);
|
|
28
|
+
if (this.jitter) {
|
|
29
|
+
var rand = Math.random();
|
|
30
|
+
var deviation = Math.floor(rand * this.jitter * ms);
|
|
31
|
+
ms = (Math.floor(rand * 10) & 1) == 0 ? ms - deviation : ms + deviation;
|
|
32
|
+
}
|
|
33
|
+
return Math.min(ms, this.max) | 0;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Reset the number of attempts.
|
|
37
|
+
*
|
|
38
|
+
* @api public
|
|
39
|
+
*/
|
|
40
|
+
Backoff.prototype.reset = function () {
|
|
41
|
+
this.attempts = 0;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Set the minimum duration
|
|
45
|
+
*
|
|
46
|
+
* @api public
|
|
47
|
+
*/
|
|
48
|
+
Backoff.prototype.setMin = function (min) {
|
|
49
|
+
this.ms = min;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Set the maximum duration
|
|
53
|
+
*
|
|
54
|
+
* @api public
|
|
55
|
+
*/
|
|
56
|
+
Backoff.prototype.setMax = function (max) {
|
|
57
|
+
this.max = max;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Set the jitter
|
|
61
|
+
*
|
|
62
|
+
* @api public
|
|
63
|
+
*/
|
|
64
|
+
Backoff.prototype.setJitter = function (jitter) {
|
|
65
|
+
this.jitter = jitter;
|
|
66
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Manager, ManagerOptions } from "./manager.js";
|
|
2
|
+
import { DisconnectDescription, Socket, SocketOptions } from "./socket.js";
|
|
3
|
+
/**
|
|
4
|
+
* Looks up an existing `Manager` for multiplexing.
|
|
5
|
+
* If the user summons:
|
|
6
|
+
*
|
|
7
|
+
* `io('http://localhost/a');`
|
|
8
|
+
* `io('http://localhost/b');`
|
|
9
|
+
*
|
|
10
|
+
* We reuse the existing instance based on same scheme/port/host,
|
|
11
|
+
* and we initialize sockets for each namespace.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
declare function lookup(opts?: Partial<ManagerOptions & SocketOptions>): Socket;
|
|
16
|
+
declare function lookup(uri?: string, opts?: Partial<ManagerOptions & SocketOptions>): Socket;
|
|
17
|
+
/**
|
|
18
|
+
* Protocol version.
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export { protocol } from "socket.io-parser";
|
|
23
|
+
/**
|
|
24
|
+
* Expose constructors for standalone build.
|
|
25
|
+
*
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export { DisconnectDescription, Manager, ManagerOptions, Socket, SocketOptions, lookup as io, lookup as connect, lookup as default, };
|
|
29
|
+
export { Fetch, NodeXHR, XHR, NodeWebSocket, WebSocket, WebTransport, } from "engine.io-client";
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { url } from "./url.js";
|
|
2
|
+
import { Manager } from "./manager.js";
|
|
3
|
+
import { Socket } from "./socket.js";
|
|
4
|
+
/**
|
|
5
|
+
* Managers cache.
|
|
6
|
+
*/
|
|
7
|
+
const cache = {};
|
|
8
|
+
function lookup(uri, opts) {
|
|
9
|
+
if (typeof uri === "object") {
|
|
10
|
+
opts = uri;
|
|
11
|
+
uri = undefined;
|
|
12
|
+
}
|
|
13
|
+
opts = opts || {};
|
|
14
|
+
const parsed = url(uri, opts.path || "/socket.io");
|
|
15
|
+
const source = parsed.source;
|
|
16
|
+
const id = parsed.id;
|
|
17
|
+
const path = parsed.path;
|
|
18
|
+
const sameNamespace = cache[id] && path in cache[id]["nsps"];
|
|
19
|
+
const newConnection = opts.forceNew ||
|
|
20
|
+
opts["force new connection"] ||
|
|
21
|
+
false === opts.multiplex ||
|
|
22
|
+
sameNamespace;
|
|
23
|
+
let io;
|
|
24
|
+
if (newConnection) {
|
|
25
|
+
io = new Manager(source, opts);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
if (!cache[id]) {
|
|
29
|
+
cache[id] = new Manager(source, opts);
|
|
30
|
+
}
|
|
31
|
+
io = cache[id];
|
|
32
|
+
}
|
|
33
|
+
if (parsed.query && !opts.query) {
|
|
34
|
+
opts.query = parsed.queryKey;
|
|
35
|
+
}
|
|
36
|
+
return io.socket(parsed.path, opts);
|
|
37
|
+
}
|
|
38
|
+
// so that "lookup" can be used both as a function (e.g. `io(...)`) and as a
|
|
39
|
+
// namespace (e.g. `io.connect(...)`), for backward compatibility
|
|
40
|
+
Object.assign(lookup, {
|
|
41
|
+
Manager,
|
|
42
|
+
Socket,
|
|
43
|
+
io: lookup,
|
|
44
|
+
connect: lookup,
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* Protocol version.
|
|
48
|
+
*
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
export { protocol } from "socket.io-parser";
|
|
52
|
+
/**
|
|
53
|
+
* Expose constructors for standalone build.
|
|
54
|
+
*
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
export { Manager, Socket, lookup as io, lookup as connect, lookup as default, };
|
|
58
|
+
export { Fetch, NodeXHR, XHR, NodeWebSocket, WebSocket, WebTransport, } from "engine.io-client";
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { Socket as Engine, SocketOptions as EngineOptions } from "engine.io-client";
|
|
2
|
+
import { Socket, SocketOptions, DisconnectDescription } from "./socket.js";
|
|
3
|
+
import { Packet } from "socket.io-parser";
|
|
4
|
+
import { DefaultEventsMap, EventsMap, Emitter } from "@socket.io/component-emitter";
|
|
5
|
+
export interface ManagerOptions extends EngineOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Should we force a new Manager for this connection?
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
forceNew: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Should we multiplex our connection (reuse existing Manager) ?
|
|
13
|
+
* @default true
|
|
14
|
+
*/
|
|
15
|
+
multiplex: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The path to get our client file from, in the case of the server
|
|
18
|
+
* serving it
|
|
19
|
+
* @default '/socket.io'
|
|
20
|
+
*/
|
|
21
|
+
path: string;
|
|
22
|
+
/**
|
|
23
|
+
* Should we allow reconnections?
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
reconnection: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* How many reconnection attempts should we try?
|
|
29
|
+
* @default Infinity
|
|
30
|
+
*/
|
|
31
|
+
reconnectionAttempts: number;
|
|
32
|
+
/**
|
|
33
|
+
* The time delay in milliseconds between reconnection attempts
|
|
34
|
+
* @default 1000
|
|
35
|
+
*/
|
|
36
|
+
reconnectionDelay: number;
|
|
37
|
+
/**
|
|
38
|
+
* The max time delay in milliseconds between reconnection attempts
|
|
39
|
+
* @default 5000
|
|
40
|
+
*/
|
|
41
|
+
reconnectionDelayMax: number;
|
|
42
|
+
/**
|
|
43
|
+
* Used in the exponential backoff jitter when reconnecting
|
|
44
|
+
* @default 0.5
|
|
45
|
+
*/
|
|
46
|
+
randomizationFactor: number;
|
|
47
|
+
/**
|
|
48
|
+
* The timeout in milliseconds for our connection attempt
|
|
49
|
+
* @default 20000
|
|
50
|
+
*/
|
|
51
|
+
timeout: number;
|
|
52
|
+
/**
|
|
53
|
+
* Should we automatically connect?
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
autoConnect: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* the parser to use. Defaults to an instance of the Parser that ships with socket.io.
|
|
59
|
+
*/
|
|
60
|
+
parser: any;
|
|
61
|
+
}
|
|
62
|
+
interface ManagerReservedEvents {
|
|
63
|
+
open: () => void;
|
|
64
|
+
error: (err: Error) => void;
|
|
65
|
+
ping: () => void;
|
|
66
|
+
packet: (packet: Packet) => void;
|
|
67
|
+
close: (reason: string, description?: DisconnectDescription) => void;
|
|
68
|
+
reconnect_failed: () => void;
|
|
69
|
+
reconnect_attempt: (attempt: number) => void;
|
|
70
|
+
reconnect_error: (err: Error) => void;
|
|
71
|
+
reconnect: (attempt: number) => void;
|
|
72
|
+
}
|
|
73
|
+
export declare class Manager<ListenEvents extends EventsMap = DefaultEventsMap, EmitEvents extends EventsMap = ListenEvents> extends Emitter<{}, {}, ManagerReservedEvents> {
|
|
74
|
+
/**
|
|
75
|
+
* The Engine.IO client instance
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
engine: Engine;
|
|
80
|
+
/**
|
|
81
|
+
* @private
|
|
82
|
+
*/
|
|
83
|
+
_autoConnect: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* @private
|
|
86
|
+
*/
|
|
87
|
+
_readyState: "opening" | "open" | "closed";
|
|
88
|
+
/**
|
|
89
|
+
* @private
|
|
90
|
+
*/
|
|
91
|
+
_reconnecting: boolean;
|
|
92
|
+
private readonly uri;
|
|
93
|
+
opts: Partial<ManagerOptions>;
|
|
94
|
+
private nsps;
|
|
95
|
+
private subs;
|
|
96
|
+
private backoff;
|
|
97
|
+
private setTimeoutFn;
|
|
98
|
+
private clearTimeoutFn;
|
|
99
|
+
private _reconnection;
|
|
100
|
+
private _reconnectionAttempts;
|
|
101
|
+
private _reconnectionDelay;
|
|
102
|
+
private _randomizationFactor;
|
|
103
|
+
private _reconnectionDelayMax;
|
|
104
|
+
private _timeout;
|
|
105
|
+
private encoder;
|
|
106
|
+
private decoder;
|
|
107
|
+
private skipReconnect;
|
|
108
|
+
/**
|
|
109
|
+
* `Manager` constructor.
|
|
110
|
+
*
|
|
111
|
+
* @param uri - engine instance or engine uri/opts
|
|
112
|
+
* @param opts - options
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
constructor(opts: Partial<ManagerOptions>);
|
|
116
|
+
constructor(uri?: string, opts?: Partial<ManagerOptions>);
|
|
117
|
+
constructor(uri?: string | Partial<ManagerOptions>, opts?: Partial<ManagerOptions>);
|
|
118
|
+
/**
|
|
119
|
+
* Sets the `reconnection` config.
|
|
120
|
+
*
|
|
121
|
+
* @param {Boolean} v - true/false if it should automatically reconnect
|
|
122
|
+
* @return {Manager} self or value
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
reconnection(v: boolean): this;
|
|
126
|
+
reconnection(): boolean;
|
|
127
|
+
reconnection(v?: boolean): this | boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Sets the reconnection attempts config.
|
|
130
|
+
*
|
|
131
|
+
* @param {Number} v - max reconnection attempts before giving up
|
|
132
|
+
* @return {Manager} self or value
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
reconnectionAttempts(v: number): this;
|
|
136
|
+
reconnectionAttempts(): number;
|
|
137
|
+
reconnectionAttempts(v?: number): this | number;
|
|
138
|
+
/**
|
|
139
|
+
* Sets the delay between reconnections.
|
|
140
|
+
*
|
|
141
|
+
* @param {Number} v - delay
|
|
142
|
+
* @return {Manager} self or value
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
145
|
+
reconnectionDelay(v: number): this;
|
|
146
|
+
reconnectionDelay(): number;
|
|
147
|
+
reconnectionDelay(v?: number): this | number;
|
|
148
|
+
/**
|
|
149
|
+
* Sets the randomization factor
|
|
150
|
+
*
|
|
151
|
+
* @param v - the randomization factor
|
|
152
|
+
* @return self or value
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
randomizationFactor(v: number): this;
|
|
156
|
+
randomizationFactor(): number;
|
|
157
|
+
randomizationFactor(v?: number): this | number;
|
|
158
|
+
/**
|
|
159
|
+
* Sets the maximum delay between reconnections.
|
|
160
|
+
*
|
|
161
|
+
* @param v - delay
|
|
162
|
+
* @return self or value
|
|
163
|
+
* @public
|
|
164
|
+
*/
|
|
165
|
+
reconnectionDelayMax(v: number): this;
|
|
166
|
+
reconnectionDelayMax(): number;
|
|
167
|
+
reconnectionDelayMax(v?: number): this | number;
|
|
168
|
+
/**
|
|
169
|
+
* Sets the connection timeout. `false` to disable
|
|
170
|
+
*
|
|
171
|
+
* @param v - connection timeout
|
|
172
|
+
* @return self or value
|
|
173
|
+
* @public
|
|
174
|
+
*/
|
|
175
|
+
timeout(v: number | boolean): this;
|
|
176
|
+
timeout(): number | boolean;
|
|
177
|
+
timeout(v?: number | boolean): this | number | boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Starts trying to reconnect if reconnection is enabled and we have not
|
|
180
|
+
* started reconnecting yet
|
|
181
|
+
*
|
|
182
|
+
* @private
|
|
183
|
+
*/
|
|
184
|
+
private maybeReconnectOnOpen;
|
|
185
|
+
/**
|
|
186
|
+
* Sets the current transport `socket`.
|
|
187
|
+
*
|
|
188
|
+
* @param {Function} fn - optional, callback
|
|
189
|
+
* @return self
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
open(fn?: (err?: Error) => void): this;
|
|
193
|
+
/**
|
|
194
|
+
* Alias for open()
|
|
195
|
+
*
|
|
196
|
+
* @return self
|
|
197
|
+
* @public
|
|
198
|
+
*/
|
|
199
|
+
connect(fn?: (err?: Error) => void): this;
|
|
200
|
+
/**
|
|
201
|
+
* Called upon transport open.
|
|
202
|
+
*
|
|
203
|
+
* @private
|
|
204
|
+
*/
|
|
205
|
+
private onopen;
|
|
206
|
+
/**
|
|
207
|
+
* Called upon a ping.
|
|
208
|
+
*
|
|
209
|
+
* @private
|
|
210
|
+
*/
|
|
211
|
+
private onping;
|
|
212
|
+
/**
|
|
213
|
+
* Called with data.
|
|
214
|
+
*
|
|
215
|
+
* @private
|
|
216
|
+
*/
|
|
217
|
+
private ondata;
|
|
218
|
+
/**
|
|
219
|
+
* Called when parser fully decodes a packet.
|
|
220
|
+
*
|
|
221
|
+
* @private
|
|
222
|
+
*/
|
|
223
|
+
private ondecoded;
|
|
224
|
+
/**
|
|
225
|
+
* Called upon socket error.
|
|
226
|
+
*
|
|
227
|
+
* @private
|
|
228
|
+
*/
|
|
229
|
+
private onerror;
|
|
230
|
+
/**
|
|
231
|
+
* Creates a new socket for the given `nsp`.
|
|
232
|
+
*
|
|
233
|
+
* @return {Socket}
|
|
234
|
+
* @public
|
|
235
|
+
*/
|
|
236
|
+
socket(nsp: string, opts?: Partial<SocketOptions>): Socket;
|
|
237
|
+
/**
|
|
238
|
+
* Called upon a socket close.
|
|
239
|
+
*
|
|
240
|
+
* @param socket
|
|
241
|
+
* @private
|
|
242
|
+
*/
|
|
243
|
+
_destroy(socket: Socket): void;
|
|
244
|
+
/**
|
|
245
|
+
* Writes a packet.
|
|
246
|
+
*
|
|
247
|
+
* @param packet
|
|
248
|
+
* @private
|
|
249
|
+
*/
|
|
250
|
+
_packet(packet: Partial<Packet & {
|
|
251
|
+
query: string;
|
|
252
|
+
options: any;
|
|
253
|
+
}>): void;
|
|
254
|
+
/**
|
|
255
|
+
* Clean up transport subscriptions and packet buffer.
|
|
256
|
+
*
|
|
257
|
+
* @private
|
|
258
|
+
*/
|
|
259
|
+
private cleanup;
|
|
260
|
+
/**
|
|
261
|
+
* Close the current socket.
|
|
262
|
+
*
|
|
263
|
+
* @private
|
|
264
|
+
*/
|
|
265
|
+
_close(): void;
|
|
266
|
+
/**
|
|
267
|
+
* Alias for close()
|
|
268
|
+
*
|
|
269
|
+
* @private
|
|
270
|
+
*/
|
|
271
|
+
private disconnect;
|
|
272
|
+
/**
|
|
273
|
+
* Called when:
|
|
274
|
+
*
|
|
275
|
+
* - the low-level engine is closed
|
|
276
|
+
* - the parser encountered a badly formatted packet
|
|
277
|
+
* - all sockets are disconnected
|
|
278
|
+
*
|
|
279
|
+
* @private
|
|
280
|
+
*/
|
|
281
|
+
private onclose;
|
|
282
|
+
/**
|
|
283
|
+
* Attempt a reconnection.
|
|
284
|
+
*
|
|
285
|
+
* @private
|
|
286
|
+
*/
|
|
287
|
+
private reconnect;
|
|
288
|
+
/**
|
|
289
|
+
* Called upon successful reconnect.
|
|
290
|
+
*
|
|
291
|
+
* @private
|
|
292
|
+
*/
|
|
293
|
+
private onreconnect;
|
|
294
|
+
}
|
|
295
|
+
export {};
|