@cendarsoss/pusher-js 8.4.13 → 8.4.14
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/CHANGELOG.md +928 -928
- package/DELTA_USAGE.md +0 -0
- package/IMPORT_GUIDE.md +0 -0
- package/bun.lock +1819 -171
- package/dist/node/filter.js +2 -120
- package/dist/node/filter.js.map +1 -1
- package/dist/node/pusher.js +273 -917
- package/dist/node/pusher.js.map +1 -1
- package/dist/web/filter.mjs +2 -120
- package/dist/web/filter.mjs.map +1 -1
- package/dist/web/pusher.mjs +442 -1040
- package/dist/web/pusher.mjs.map +1 -1
- package/examples/delta-seamless-example.html +0 -0
- package/index.d.ts +12 -12
- package/interactive/package.json +2 -2
- package/interactive/public/bundle-entry.js +2 -6
- package/interactive/public/conflation-test.html +1 -3
- package/interactive/public/conflation-test.js +25 -26
- package/interactive/public/dist/bundle.js +21 -5845
- package/interactive/tsconfig.json +19 -0
- package/package.json +3 -3
- package/src/core/auth/auth_transports.js +2 -0
- package/src/core/auth/auth_transports.js.map +1 -0
- package/src/core/auth/channel_authorizer.js +35 -0
- package/src/core/auth/channel_authorizer.js.map +1 -0
- package/src/core/auth/deprecated_channel_authorizer.js +16 -0
- package/src/core/auth/deprecated_channel_authorizer.js.map +1 -0
- package/src/core/auth/options.js +6 -0
- package/src/core/auth/options.js.map +1 -0
- package/src/core/auth/user_authenticator.js +34 -0
- package/src/core/auth/user_authenticator.js.map +1 -0
- package/src/core/base64.js +40 -0
- package/src/core/base64.js.map +1 -0
- package/src/core/channels/channel.js +106 -0
- package/src/core/channels/channel.js.map +1 -0
- package/src/core/channels/channel_table.js +2 -0
- package/src/core/channels/channel_table.js.map +1 -0
- package/src/core/channels/channels.js +54 -0
- package/src/core/channels/channels.js.map +1 -0
- package/src/core/channels/encrypted_channel.js +91 -0
- package/src/core/channels/encrypted_channel.js.map +1 -0
- package/src/core/channels/filter.js +132 -0
- package/src/core/channels/filter.js.map +1 -0
- package/src/core/channels/members.js +52 -0
- package/src/core/channels/members.js.map +1 -0
- package/src/core/channels/metadata.js +2 -0
- package/src/core/channels/metadata.js.map +1 -0
- package/src/core/channels/presence_channel.js +97 -0
- package/src/core/channels/presence_channel.js.map +1 -0
- package/src/core/channels/private_channel.js +10 -0
- package/src/core/channels/private_channel.js.map +1 -0
- package/src/core/config.js +112 -0
- package/src/core/config.js.map +1 -0
- package/src/core/connection/callbacks.js +2 -0
- package/src/core/connection/callbacks.js.map +1 -0
- package/src/core/connection/connection.js +106 -0
- package/src/core/connection/connection.js.map +1 -0
- package/src/core/connection/connection_manager.js +255 -0
- package/src/core/connection/connection_manager.js.map +1 -0
- package/src/core/connection/connection_manager_options.js +2 -0
- package/src/core/connection/connection_manager_options.js.map +1 -0
- package/src/core/connection/handshake/handshake_payload.js +2 -0
- package/src/core/connection/handshake/handshake_payload.js.map +1 -0
- package/src/core/connection/handshake/index.js +54 -0
- package/src/core/connection/handshake/index.js.map +1 -0
- package/src/core/connection/protocol/action.js +2 -0
- package/src/core/connection/protocol/action.js.map +1 -0
- package/src/core/connection/protocol/message-types.js +2 -0
- package/src/core/connection/protocol/message-types.js.map +1 -0
- package/src/core/connection/protocol/protocol.js +102 -0
- package/src/core/connection/protocol/protocol.js.map +1 -0
- package/src/core/defaults.js +30 -0
- package/src/core/defaults.js.map +1 -0
- package/src/core/delta/channel_state.js +103 -0
- package/src/core/delta/channel_state.js.map +1 -0
- package/src/core/delta/channel_state.ts +3 -2
- package/src/core/delta/decoders.js +81 -0
- package/src/core/delta/decoders.js.map +1 -0
- package/{types/src/core/delta/index.d.ts → src/core/delta/index.js} +1 -0
- package/src/core/delta/index.js.map +1 -0
- package/src/core/delta/manager.js +327 -0
- package/src/core/delta/manager.js.map +1 -0
- package/src/core/delta/manager.ts +21 -40
- package/src/core/delta/types.js +2 -0
- package/src/core/delta/types.js.map +1 -0
- package/src/core/errors.js +56 -0
- package/src/core/errors.js.map +1 -0
- package/src/core/events/callback.js +2 -0
- package/src/core/events/callback.js.map +1 -0
- package/src/core/events/callback_registry.js +51 -0
- package/src/core/events/callback_registry.js.map +1 -0
- package/src/core/events/callback_table.js +2 -0
- package/src/core/events/callback_table.js.map +1 -0
- package/src/core/events/dispatcher.js +57 -0
- package/src/core/events/dispatcher.js.map +1 -0
- package/src/core/http/ajax.js +2 -0
- package/src/core/http/ajax.js.map +1 -0
- package/src/core/http/http_factory.js +2 -0
- package/src/core/http/http_factory.js.map +1 -0
- package/src/core/http/http_polling_socket.js +20 -0
- package/src/core/http/http_polling_socket.js.map +1 -0
- package/src/core/http/http_request.js +63 -0
- package/src/core/http/http_request.js.map +1 -0
- package/src/core/http/http_socket.js +171 -0
- package/src/core/http/http_socket.js.map +1 -0
- package/src/core/http/http_streaming_socket.js +16 -0
- package/src/core/http/http_streaming_socket.js.map +1 -0
- package/src/core/http/request_hooks.js +2 -0
- package/src/core/http/request_hooks.js.map +1 -0
- package/src/core/http/socket_hooks.js +2 -0
- package/src/core/http/socket_hooks.js.map +1 -0
- package/src/core/http/state.js +8 -0
- package/src/core/http/state.js.map +1 -0
- package/src/core/http/url_location.js +2 -0
- package/src/core/http/url_location.js.map +1 -0
- package/src/core/logger.js +53 -0
- package/src/core/logger.js.map +1 -0
- package/src/core/options.js +13 -0
- package/src/core/options.js.map +1 -0
- package/src/core/pusher-with-encryption.js +13 -1
- package/src/core/pusher-with-encryption.js.map +1 -0
- package/src/core/pusher.js +279 -10
- package/src/core/pusher.js.map +1 -0
- package/src/core/reachability.js +2 -0
- package/src/core/reachability.js.map +1 -0
- package/src/core/socket.js +2 -0
- package/src/core/socket.js.map +1 -0
- package/src/core/strategies/best_connected_ever_strategy.js +54 -0
- package/src/core/strategies/best_connected_ever_strategy.js.map +1 -0
- package/src/core/strategies/delayed_strategy.js +32 -0
- package/src/core/strategies/delayed_strategy.js.map +1 -0
- package/src/core/strategies/first_connected_strategy.js +18 -0
- package/src/core/strategies/first_connected_strategy.js.map +1 -0
- package/src/core/strategies/if_strategy.js +16 -0
- package/src/core/strategies/if_strategy.js.map +1 -0
- package/src/core/strategies/sequential_strategy.js +87 -0
- package/src/core/strategies/sequential_strategy.js.map +1 -0
- package/src/core/strategies/strategy.js +2 -0
- package/src/core/strategies/strategy.js.map +1 -0
- package/src/core/strategies/strategy_builder.js +42 -0
- package/src/core/strategies/strategy_builder.js.map +1 -0
- package/src/core/strategies/strategy_options.js +2 -0
- package/src/core/strategies/strategy_options.js.map +1 -0
- package/src/core/strategies/strategy_runner.js +2 -0
- package/src/core/strategies/strategy_runner.js.map +1 -0
- package/src/core/strategies/transport_strategy.js +97 -0
- package/src/core/strategies/transport_strategy.js.map +1 -0
- package/src/core/strategies/websocket_prioritized_cached_strategy.js +115 -0
- package/src/core/strategies/websocket_prioritized_cached_strategy.js.map +1 -0
- package/src/core/timeline/level.js +8 -0
- package/src/core/timeline/level.js.map +1 -0
- package/src/core/timeline/timeline.js +60 -0
- package/src/core/timeline/timeline.js.map +1 -0
- package/src/core/timeline/timeline_sender.js +14 -0
- package/src/core/timeline/timeline_sender.js.map +1 -0
- package/src/core/timeline/timeline_transport.js +2 -0
- package/src/core/timeline/timeline_transport.js.map +1 -0
- package/src/core/transports/assistant_to_the_transport_manager.js +42 -0
- package/src/core/transports/assistant_to_the_transport_manager.js.map +1 -0
- package/src/core/transports/ping_delay_options.js +2 -0
- package/src/core/transports/ping_delay_options.js.map +1 -0
- package/src/core/transports/transport.js +13 -0
- package/src/core/transports/transport.js.map +1 -0
- package/src/core/transports/transport_connection.js +146 -0
- package/src/core/transports/transport_connection.js.map +1 -0
- package/src/core/transports/transport_connection_options.js +2 -0
- package/src/core/transports/transport_connection_options.js.map +1 -0
- package/src/core/transports/transport_hooks.js +2 -0
- package/src/core/transports/transport_hooks.js.map +1 -0
- package/src/core/transports/transport_manager.js +20 -0
- package/src/core/transports/transport_manager.js.map +1 -0
- package/src/core/transports/transports_table.js +2 -0
- package/src/core/transports/transports_table.js.map +1 -0
- package/src/core/transports/url_scheme.js +2 -0
- package/src/core/transports/url_scheme.js.map +1 -0
- package/src/core/transports/url_schemes.js +37 -0
- package/src/core/transports/url_schemes.js.map +1 -0
- package/src/core/user.js +133 -0
- package/src/core/user.js.map +1 -0
- package/src/core/util.js +22 -0
- package/src/core/util.js.map +1 -0
- package/src/core/utils/collections.js +193 -0
- package/src/core/utils/collections.js.map +1 -0
- package/src/core/utils/factory.js +40 -0
- package/src/core/utils/factory.js.map +1 -0
- package/src/core/utils/flat_promise.js +10 -0
- package/src/core/utils/flat_promise.js.map +1 -0
- package/src/core/utils/timers/abstract_timer.js +21 -0
- package/src/core/utils/timers/abstract_timer.js.map +1 -0
- package/src/core/utils/timers/index.js +24 -0
- package/src/core/utils/timers/index.js.map +1 -0
- package/src/core/utils/timers/scheduling.js +2 -0
- package/src/core/utils/timers/scheduling.js.map +1 -0
- package/src/core/utils/timers/timed_callback.js +2 -0
- package/src/core/utils/timers/timed_callback.js.map +1 -0
- package/src/core/utils/url_store.js +38 -0
- package/src/core/utils/url_store.js.map +1 -0
- package/src/core/watchlist.js +25 -0
- package/src/core/watchlist.js.map +1 -0
- package/src/filter.js +2 -0
- package/src/filter.js.map +1 -0
- package/src/filter.ts +0 -0
- package/src/index.js +3 -0
- package/src/index.js.map +1 -0
- package/src/index.ts +1 -1
- package/src/runtimes/interface.js +2 -0
- package/src/runtimes/interface.js.map +1 -0
- package/src/runtimes/isomorphic/auth/xhr_auth.js +53 -0
- package/src/runtimes/isomorphic/auth/xhr_auth.js.map +1 -0
- package/src/runtimes/isomorphic/default_strategy.js +83 -0
- package/src/runtimes/isomorphic/default_strategy.js.map +1 -0
- package/src/runtimes/isomorphic/http/http.js +24 -0
- package/src/runtimes/isomorphic/http/http.js.map +1 -0
- package/src/runtimes/isomorphic/http/http_xhr_request.js +30 -0
- package/src/runtimes/isomorphic/http/http_xhr_request.js.map +1 -0
- package/src/runtimes/isomorphic/runtime.js +48 -0
- package/src/runtimes/isomorphic/runtime.js.map +1 -0
- package/src/runtimes/isomorphic/timeline/xhr_timeline.js +38 -0
- package/src/runtimes/isomorphic/timeline/xhr_timeline.js.map +1 -0
- package/src/runtimes/isomorphic/transports/transport_connection_initializer.js +13 -0
- package/src/runtimes/isomorphic/transports/transport_connection_initializer.js.map +1 -0
- package/src/runtimes/isomorphic/transports/transports.js +50 -0
- package/src/runtimes/isomorphic/transports/transports.js.map +1 -0
- package/src/runtimes/node/net_info.js +8 -0
- package/src/runtimes/node/net_info.js.map +1 -0
- package/src/runtimes/node/runtime.js +41 -0
- package/src/runtimes/node/runtime.js.map +1 -0
- package/src/runtimes/react-native/net_info.js +31 -0
- package/src/runtimes/react-native/net_info.js.map +1 -0
- package/src/runtimes/react-native/runtime.js +38 -0
- package/src/runtimes/react-native/runtime.js.map +1 -0
- package/src/runtimes/web/auth/jsonp_auth.js +25 -0
- package/src/runtimes/web/auth/jsonp_auth.js.map +1 -0
- package/src/runtimes/web/browser.js +2 -0
- package/src/runtimes/web/browser.js.map +1 -0
- package/src/runtimes/web/default_strategy.js +91 -0
- package/src/runtimes/web/default_strategy.js.map +1 -0
- package/src/runtimes/web/dom/dependencies.js +12 -0
- package/src/runtimes/web/dom/dependencies.js.map +1 -0
- package/src/runtimes/web/dom/dependency_loader.js +50 -0
- package/src/runtimes/web/dom/dependency_loader.js.map +1 -0
- package/src/runtimes/web/dom/jsonp_request.js +23 -0
- package/src/runtimes/web/dom/jsonp_request.js.map +1 -0
- package/src/runtimes/web/dom/script_receiver.js +2 -0
- package/src/runtimes/web/dom/script_receiver.js.map +1 -0
- package/src/runtimes/web/dom/script_receiver_factory.js +27 -0
- package/src/runtimes/web/dom/script_receiver_factory.js.map +1 -0
- package/src/runtimes/web/dom/script_request.js +61 -0
- package/src/runtimes/web/dom/script_request.js.map +1 -0
- package/src/runtimes/web/http/http.js +7 -0
- package/src/runtimes/web/http/http.js.map +1 -0
- package/src/runtimes/web/http/http_xdomain_request.js +33 -0
- package/src/runtimes/web/http/http_xdomain_request.js.map +1 -0
- package/src/runtimes/web/net_info.js +25 -0
- package/src/runtimes/web/net_info.js.map +1 -0
- package/src/runtimes/web/runtime.js +142 -0
- package/src/runtimes/web/runtime.js.map +1 -0
- package/src/runtimes/web/timeline/jsonp_timeline.js +26 -0
- package/src/runtimes/web/timeline/jsonp_timeline.js.map +1 -0
- package/src/runtimes/web/transports/transport_connection_initializer.js +30 -0
- package/src/runtimes/web/transports/transport_connection_initializer.js.map +1 -0
- package/src/runtimes/web/transports/transports.js +44 -0
- package/src/runtimes/web/transports/transports.js.map +1 -0
- package/src/runtimes/worker/auth/fetch_auth.js +44 -0
- package/src/runtimes/worker/auth/fetch_auth.js.map +1 -0
- package/src/runtimes/worker/net_info.js +8 -0
- package/src/runtimes/worker/net_info.js.map +1 -0
- package/src/runtimes/worker/runtime.js +43 -0
- package/src/runtimes/worker/runtime.js.map +1 -0
- package/src/runtimes/worker/timeline/fetch_timeline.js +31 -0
- package/src/runtimes/worker/timeline/fetch_timeline.js.map +1 -0
- package/tsconfig.json +24 -5
- package/vite.config.js +0 -0
- package/vite.config.node.js +0 -0
- package/interactive/public/delta-compression.js +0 -1090
- package/types/spec/javascripts/helpers/node/mock-dom-dependencies.d.ts +0 -1
- package/types/spec/javascripts/helpers/pusher_integration_class.d.ts +0 -4
- package/types/src/core/auth/auth_transports.d.ts +0 -9
- package/types/src/core/auth/channel_authorizer.d.ts +0 -3
- package/types/src/core/auth/deprecated_channel_authorizer.d.ts +0 -18
- package/types/src/core/auth/options.d.ts +0 -48
- package/types/src/core/auth/user_authenticator.d.ts +0 -3
- package/types/src/core/base64.d.ts +0 -1
- package/types/src/core/channels/channel.d.ts +0 -25
- package/types/src/core/channels/channel_table.d.ts +0 -5
- package/types/src/core/channels/channels.d.ts +0 -12
- package/types/src/core/channels/encrypted_channel.d.ts +0 -15
- package/types/src/core/channels/filter.d.ts +0 -33
- package/types/src/core/channels/members.d.ts +0 -14
- package/types/src/core/channels/metadata.d.ts +0 -4
- package/types/src/core/channels/presence_channel.d.ts +0 -13
- package/types/src/core/channels/private_channel.d.ts +0 -5
- package/types/src/core/config.d.ts +0 -31
- package/types/src/core/connection/callbacks.d.ts +0 -18
- package/types/src/core/connection/connection.d.ts +0 -16
- package/types/src/core/connection/connection_manager.d.ts +0 -50
- package/types/src/core/connection/connection_manager_options.d.ts +0 -11
- package/types/src/core/connection/handshake/handshake_payload.d.ts +0 -8
- package/types/src/core/connection/handshake/index.d.ts +0 -12
- package/types/src/core/connection/protocol/action.d.ts +0 -7
- package/types/src/core/connection/protocol/message-types.d.ts +0 -10
- package/types/src/core/connection/protocol/protocol.d.ts +0 -10
- package/types/src/core/defaults.d.ts +0 -26
- package/types/src/core/delta/channel_state.d.ts +0 -23
- package/types/src/core/delta/decoders.d.ts +0 -12
- package/types/src/core/delta/manager.d.ts +0 -27
- package/types/src/core/delta/types.d.ts +0 -50
- package/types/src/core/errors.d.ts +0 -28
- package/types/src/core/events/callback.d.ts +0 -5
- package/types/src/core/events/callback_registry.d.ts +0 -11
- package/types/src/core/events/callback_table.d.ts +0 -5
- package/types/src/core/events/dispatcher.d.ts +0 -14
- package/types/src/core/http/ajax.d.ts +0 -16
- package/types/src/core/http/http_factory.d.ts +0 -13
- package/types/src/core/http/http_polling_socket.d.ts +0 -3
- package/types/src/core/http/http_request.d.ts +0 -17
- package/types/src/core/http/http_socket.d.ts +0 -32
- package/types/src/core/http/http_streaming_socket.d.ts +0 -3
- package/types/src/core/http/request_hooks.d.ts +0 -6
- package/types/src/core/http/socket_hooks.d.ts +0 -8
- package/types/src/core/http/state.d.ts +0 -6
- package/types/src/core/http/url_location.d.ts +0 -5
- package/types/src/core/logger.d.ts +0 -11
- package/types/src/core/options.d.ts +0 -36
- package/types/src/core/pusher-with-encryption.d.ts +0 -5
- package/types/src/core/pusher.d.ts +0 -56
- package/types/src/core/reachability.d.ts +0 -5
- package/types/src/core/socket.d.ts +0 -12
- package/types/src/core/strategies/best_connected_ever_strategy.d.ts +0 -10
- package/types/src/core/strategies/delayed_strategy.d.ts +0 -15
- package/types/src/core/strategies/first_connected_strategy.d.ts +0 -8
- package/types/src/core/strategies/if_strategy.d.ts +0 -10
- package/types/src/core/strategies/sequential_strategy.d.ts +0 -16
- package/types/src/core/strategies/strategy.d.ts +0 -6
- package/types/src/core/strategies/strategy_builder.d.ts +0 -5
- package/types/src/core/strategies/strategy_options.d.ts +0 -16
- package/types/src/core/strategies/strategy_runner.d.ts +0 -5
- package/types/src/core/strategies/transport_strategy.d.ts +0 -15
- package/types/src/core/strategies/websocket_prioritized_cached_strategy.d.ts +0 -20
- package/types/src/core/timeline/level.d.ts +0 -6
- package/types/src/core/timeline/timeline.d.ts +0 -25
- package/types/src/core/timeline/timeline_sender.d.ts +0 -13
- package/types/src/core/timeline/timeline_transport.d.ts +0 -6
- package/types/src/core/transports/assistant_to_the_transport_manager.d.ts +0 -14
- package/types/src/core/transports/ping_delay_options.d.ts +0 -6
- package/types/src/core/transports/transport.d.ts +0 -8
- package/types/src/core/transports/transport_connection.d.ts +0 -35
- package/types/src/core/transports/transport_connection_options.d.ts +0 -6
- package/types/src/core/transports/transport_hooks.d.ts +0 -13
- package/types/src/core/transports/transport_manager.d.ts +0 -14
- package/types/src/core/transports/transports_table.d.ts +0 -10
- package/types/src/core/transports/url_scheme.d.ts +0 -11
- package/types/src/core/transports/url_schemes.d.ts +0 -4
- package/types/src/core/user.d.ts +0 -21
- package/types/src/core/util.d.ts +0 -8
- package/types/src/core/utils/collections.d.ts +0 -18
- package/types/src/core/utils/factory.d.ts +0 -29
- package/types/src/core/utils/flat_promise.d.ts +0 -6
- package/types/src/core/utils/timers/abstract_timer.d.ts +0 -10
- package/types/src/core/utils/timers/index.d.ts +0 -9
- package/types/src/core/utils/timers/scheduling.d.ts +0 -8
- package/types/src/core/utils/timers/timed_callback.d.ts +0 -4
- package/types/src/core/utils/url_store.d.ts +0 -4
- package/types/src/core/watchlist.d.ts +0 -8
- package/types/src/runtimes/interface.d.ts +0 -43
- package/types/src/runtimes/isomorphic/auth/xhr_auth.d.ts +0 -3
- package/types/src/runtimes/isomorphic/default_strategy.d.ts +0 -5
- package/types/src/runtimes/isomorphic/http/http.d.ts +0 -3
- package/types/src/runtimes/isomorphic/http/http_xhr_request.d.ts +0 -3
- package/types/src/runtimes/isomorphic/runtime.d.ts +0 -2
- package/types/src/runtimes/isomorphic/timeline/xhr_timeline.d.ts +0 -6
- package/types/src/runtimes/isomorphic/transports/transport_connection_initializer.d.ts +0 -1
- package/types/src/runtimes/isomorphic/transports/transports.d.ts +0 -5
- package/types/src/runtimes/node/net_info.d.ts +0 -6
- package/types/src/runtimes/node/runtime.d.ts +0 -3
- package/types/src/runtimes/react-native/net_info.d.ts +0 -8
- package/types/src/runtimes/react-native/runtime.d.ts +0 -3
- package/types/src/runtimes/web/auth/jsonp_auth.d.ts +0 -3
- package/types/src/runtimes/web/browser.d.ts +0 -19
- package/types/src/runtimes/web/default_strategy.d.ts +0 -5
- package/types/src/runtimes/web/dom/dependencies.d.ts +0 -4
- package/types/src/runtimes/web/dom/dependency_loader.d.ts +0 -10
- package/types/src/runtimes/web/dom/jsonp_request.d.ts +0 -10
- package/types/src/runtimes/web/dom/script_receiver.d.ts +0 -7
- package/types/src/runtimes/web/dom/script_receiver_factory.d.ts +0 -10
- package/types/src/runtimes/web/dom/script_request.d.ts +0 -9
- package/types/src/runtimes/web/http/http.d.ts +0 -2
- package/types/src/runtimes/web/http/http_xdomain_request.d.ts +0 -3
- package/types/src/runtimes/web/net_info.d.ts +0 -7
- package/types/src/runtimes/web/runtime.d.ts +0 -3
- package/types/src/runtimes/web/timeline/jsonp_timeline.d.ts +0 -6
- package/types/src/runtimes/web/transports/transport_connection_initializer.d.ts +0 -1
- package/types/src/runtimes/web/transports/transports.d.ts +0 -2
- package/types/src/runtimes/worker/auth/fetch_auth.d.ts +0 -3
- package/types/src/runtimes/worker/net_info.d.ts +0 -6
- package/types/src/runtimes/worker/runtime.d.ts +0 -3
- package/types/src/runtimes/worker/timeline/fetch_timeline.d.ts +0 -6
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import AssistantToTheTransportManager from '../transports/assistant_to_the_transport_manager';
|
|
2
|
-
import PingDelayOptions from '../transports/ping_delay_options';
|
|
3
|
-
import Transport from '../transports/transport';
|
|
4
|
-
import TransportManager from '../transports/transport_manager';
|
|
5
|
-
import Handshake from '../connection/handshake';
|
|
6
|
-
import TransportConnection from '../transports/transport_connection';
|
|
7
|
-
import Timeline from '../timeline/timeline';
|
|
8
|
-
import { default as TimelineSender, TimelineSenderOptions } from '../timeline/timeline_sender';
|
|
9
|
-
import PresenceChannel from '../channels/presence_channel';
|
|
10
|
-
import PrivateChannel from '../channels/private_channel';
|
|
11
|
-
import EncryptedChannel from '../channels/encrypted_channel';
|
|
12
|
-
import Channel from '../channels/channel';
|
|
13
|
-
import ConnectionManager from '../connection/connection_manager';
|
|
14
|
-
import ConnectionManagerOptions from '../connection/connection_manager_options';
|
|
15
|
-
import Channels from '../channels/channels';
|
|
16
|
-
import Pusher from '../pusher';
|
|
17
|
-
import * as nacl from 'tweetnacl';
|
|
18
|
-
declare var Factory: {
|
|
19
|
-
createChannels(): Channels;
|
|
20
|
-
createConnectionManager(key: string, options: ConnectionManagerOptions): ConnectionManager;
|
|
21
|
-
createChannel(name: string, pusher: Pusher): Channel;
|
|
22
|
-
createPrivateChannel(name: string, pusher: Pusher): PrivateChannel;
|
|
23
|
-
createPresenceChannel(name: string, pusher: Pusher): PresenceChannel;
|
|
24
|
-
createEncryptedChannel(name: string, pusher: Pusher, nacl: nacl): EncryptedChannel;
|
|
25
|
-
createTimelineSender(timeline: Timeline, options: TimelineSenderOptions): TimelineSender;
|
|
26
|
-
createHandshake(transport: TransportConnection, callback: (HandshakePayload: any) => void): Handshake;
|
|
27
|
-
createAssistantToTheTransportManager(manager: TransportManager, transport: Transport, options: PingDelayOptions): AssistantToTheTransportManager;
|
|
28
|
-
};
|
|
29
|
-
export default Factory;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import TimedCallback from './timed_callback';
|
|
2
|
-
import { Delay, Scheduler, Canceller } from './scheduling';
|
|
3
|
-
declare abstract class Timer {
|
|
4
|
-
protected clear: Canceller;
|
|
5
|
-
protected timer: number | void;
|
|
6
|
-
constructor(set: Scheduler, clear: Canceller, delay: Delay, callback: TimedCallback);
|
|
7
|
-
isRunning(): boolean;
|
|
8
|
-
ensureAborted(): void;
|
|
9
|
-
}
|
|
10
|
-
export default Timer;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Timer from './abstract_timer';
|
|
2
|
-
import TimedCallback from './timed_callback';
|
|
3
|
-
import { Delay } from './scheduling';
|
|
4
|
-
export declare class OneOffTimer extends Timer {
|
|
5
|
-
constructor(delay: Delay, callback: TimedCallback);
|
|
6
|
-
}
|
|
7
|
-
export declare class PeriodicTimer extends Timer {
|
|
8
|
-
constructor(delay: Delay, callback: TimedCallback);
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import Pusher from './pusher';
|
|
2
|
-
import EventsDispatcher from './events/dispatcher';
|
|
3
|
-
export default class WatchlistFacade extends EventsDispatcher {
|
|
4
|
-
private pusher;
|
|
5
|
-
constructor(pusher: Pusher);
|
|
6
|
-
handleEvent(pusherEvent: any): void;
|
|
7
|
-
private bindWatchlistInternalEvent;
|
|
8
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { AuthTransports } from '../core/auth/auth_transports';
|
|
2
|
-
import TimelineTransport from '../core/timeline/timeline_transport';
|
|
3
|
-
import Ajax from '../core/http/ajax';
|
|
4
|
-
import Reachability from '../core/reachability';
|
|
5
|
-
import TransportsTable from '../core/transports/transports_table';
|
|
6
|
-
import Socket from '../core/socket';
|
|
7
|
-
import HTTPFactory from '../core/http/http_factory';
|
|
8
|
-
import HTTPRequest from '../core/http/http_request';
|
|
9
|
-
import Pusher from '../core/pusher';
|
|
10
|
-
import JSONPRequest from './web/dom/jsonp_request';
|
|
11
|
-
import Strategy from '../core/strategies/strategy';
|
|
12
|
-
import { Config } from '../core/config';
|
|
13
|
-
import StrategyOptions from '../core/strategies/strategy_options';
|
|
14
|
-
interface Runtime {
|
|
15
|
-
setup(PusherClass: {
|
|
16
|
-
new (key: string, options: any): Pusher;
|
|
17
|
-
ready(): void;
|
|
18
|
-
}): void;
|
|
19
|
-
getProtocol(): string;
|
|
20
|
-
getAuthorizers(): AuthTransports;
|
|
21
|
-
getLocalStorage(): any;
|
|
22
|
-
TimelineTransport: TimelineTransport;
|
|
23
|
-
createXHR(): Ajax;
|
|
24
|
-
createWebSocket(url: string): Socket;
|
|
25
|
-
getNetwork(): Reachability;
|
|
26
|
-
getDefaultStrategy(config: Config, options: StrategyOptions, defineTransport: Function): Strategy;
|
|
27
|
-
Transports: TransportsTable;
|
|
28
|
-
getWebSocketAPI(): new (url: string) => Socket;
|
|
29
|
-
getXHRAPI(): new () => Ajax;
|
|
30
|
-
addUnloadListener(listener: Function): void;
|
|
31
|
-
removeUnloadListener(listener: Function): void;
|
|
32
|
-
transportConnectionInitializer: Function;
|
|
33
|
-
HTTPFactory: HTTPFactory;
|
|
34
|
-
isXHRSupported(): boolean;
|
|
35
|
-
createSocketRequest(method: string, url: string): HTTPRequest;
|
|
36
|
-
randomInt(max: number): number;
|
|
37
|
-
getDocument?(): Document;
|
|
38
|
-
createScriptRequest?(url: string): any;
|
|
39
|
-
createJSONPRequest?(url: string, data: any): JSONPRequest;
|
|
40
|
-
ScriptReceivers?: any;
|
|
41
|
-
isXDRSupported?(useTLS?: boolean): boolean;
|
|
42
|
-
}
|
|
43
|
-
export default Runtime;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import Strategy from 'core/strategies/strategy';
|
|
2
|
-
import { Config } from 'core/config';
|
|
3
|
-
import StrategyOptions from 'core/strategies/strategy_options';
|
|
4
|
-
declare var getDefaultStrategy: (config: Config, baseOptions: StrategyOptions, defineTransport: Function) => Strategy;
|
|
5
|
-
export default getDefaultStrategy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function (): void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import EventsDispatcher from 'core/events/dispatcher';
|
|
2
|
-
import Reachability from 'core/reachability';
|
|
3
|
-
export declare class NetInfo extends EventsDispatcher implements Reachability {
|
|
4
|
-
online: boolean;
|
|
5
|
-
constructor();
|
|
6
|
-
isOnline(): boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare var Network: NetInfo;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import AbstractRuntime from 'runtimes/interface';
|
|
2
|
-
import { ScriptReceiverFactory } from './dom/script_receiver_factory';
|
|
3
|
-
import ScriptRequest from './dom/script_request';
|
|
4
|
-
import JSONPRequest from './dom/jsonp_request';
|
|
5
|
-
import Ajax from 'core/http/ajax';
|
|
6
|
-
interface Browser extends AbstractRuntime {
|
|
7
|
-
nextAuthCallbackID: number;
|
|
8
|
-
auth_callbacks: any;
|
|
9
|
-
ScriptReceivers: ScriptReceiverFactory;
|
|
10
|
-
DependenciesReceivers: ScriptReceiverFactory;
|
|
11
|
-
onDocumentBody(callback: Function): any;
|
|
12
|
-
getDocument(): any;
|
|
13
|
-
createJSONPRequest(url: string, data: any): JSONPRequest;
|
|
14
|
-
createScriptRequest(src: string): ScriptRequest;
|
|
15
|
-
isXDRSupported(useTLS?: boolean): boolean;
|
|
16
|
-
createXMLHttpRequest(): Ajax;
|
|
17
|
-
createMicrosoftXHR(): Ajax;
|
|
18
|
-
}
|
|
19
|
-
export default Browser;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import Strategy from 'core/strategies/strategy';
|
|
2
|
-
import StrategyOptions from 'core/strategies/strategy_options';
|
|
3
|
-
import { Config } from 'core/config';
|
|
4
|
-
declare var getDefaultStrategy: (config: Config, baseOptions: StrategyOptions, defineTransport: Function) => Strategy;
|
|
5
|
-
export default getDefaultStrategy;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ScriptReceiverFactory } from './script_receiver_factory';
|
|
2
|
-
export default class DependencyLoader {
|
|
3
|
-
options: any;
|
|
4
|
-
receivers: ScriptReceiverFactory;
|
|
5
|
-
loading: any;
|
|
6
|
-
constructor(options: any);
|
|
7
|
-
load(name: string, options: any, callback: Function): void;
|
|
8
|
-
getRoot(options: any): string;
|
|
9
|
-
getPath(name: string, options: any): string;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import ScriptReceiver from './script_receiver';
|
|
2
|
-
import ScriptRequest from './script_request';
|
|
3
|
-
export default class JSONPRequest {
|
|
4
|
-
url: string;
|
|
5
|
-
data: any;
|
|
6
|
-
request: ScriptRequest;
|
|
7
|
-
constructor(url: string, data: any);
|
|
8
|
-
send(receiver: ScriptReceiver): void;
|
|
9
|
-
cleanup(): void;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import ScriptReceiver from './script_receiver';
|
|
2
|
-
export declare class ScriptReceiverFactory {
|
|
3
|
-
lastId: number;
|
|
4
|
-
prefix: string;
|
|
5
|
-
name: string;
|
|
6
|
-
constructor(prefix: string, name: string);
|
|
7
|
-
create(callback: Function): ScriptReceiver;
|
|
8
|
-
remove(receiver: ScriptReceiver): void;
|
|
9
|
-
}
|
|
10
|
-
export declare var ScriptReceivers: ScriptReceiverFactory;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import Reachability from 'core/reachability';
|
|
2
|
-
import { default as EventsDispatcher } from 'core/events/dispatcher';
|
|
3
|
-
export declare class NetInfo extends EventsDispatcher implements Reachability {
|
|
4
|
-
constructor();
|
|
5
|
-
isOnline(): boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare var Network: NetInfo;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function (): void;
|