Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pusher/pusher-js
/ functions
Functions
555 in github.com/pusher/pusher-js
⨍
Functions
555
◇
Types & classes
330
↓ 1 callers
Function
connect
Connects to all strategies in parallel. * * Callback builder should be a function that takes two arguments: index * and a list of runners. It shoul
src/core/strategies/best_connected_ever_strategy.ts:50
↓ 1 callers
Method
connect
()
src/core/pusher.ts:163
↓ 1 callers
Method
connect
Establishes a connection to Pusher. * * Does nothing when connection is already established. See top-level doc * to find events emitted on co
src/core/connection/connection_manager.ts:113
↓ 1 callers
Function
createChannel
(name: string, pusher: Pusher)
src/core/channels/channels.ts:66
↓ 1 callers
Method
createJSONPRequest
(url: string, data: any)
src/runtimes/web/browser.ts:16
↓ 1 callers
Method
createMicrosoftXHR
()
src/runtimes/web/browser.ts:21
↓ 1 callers
Method
createWebSocket
(url: string)
src/runtimes/interface.ts:33
↓ 1 callers
Method
createXMLHttpRequest
()
src/runtimes/web/browser.ts:20
↓ 1 callers
Function
decycleObject
(object: any)
src/core/utils/collections.ts:293
↓ 1 callers
Function
describeClusterTest
(options)
spec/javascripts/integration/core/cluster_config_spec.js:34
↓ 1 callers
Method
disconnect
Closes the connection.
src/core/connection/connection_manager.ts:154
↓ 1 callers
Function
encodeParamsObject
(data)
src/core/utils/collections.ts:262
↓ 1 callers
Function
fetchTransportCache
(usingTLS: boolean)
src/core/strategies/websocket_prioritized_cached_strategy.ts:112
↓ 1 callers
Function
filterObject
(object: Object, test: Function)
src/core/utils/collections.ts:201
↓ 1 callers
Function
flatten
(object: Object)
src/core/utils/collections.ts:216
↓ 1 callers
Method
get
(name: string)
src/core/events/callback_registry.ts:12
↓ 1 callers
Method
getClientFeatures
()
src/core/pusher.ts:42
↓ 1 callers
Function
getEnableStatsConfig
(opts: Options)
src/core/config.ts:126
↓ 1 callers
Function
getHttpHost
(opts: Options)
src/core/config.ts:93
↓ 1 callers
Function
getLocation
(url)
src/core/http/http_socket.ts:184
↓ 1 callers
Method
getNetwork
()
src/runtimes/interface.ts:34
↓ 1 callers
Function
getSendURL
(url: URLLocation, session: string)
src/core/http/http_socket.ts:192
↓ 1 callers
Function
getStaticDefaultKeys
()
spec/javascripts/unit/core/config_spec.js:491
↓ 1 callers
Function
getTestConfigs
()
spec/javascripts/integration/index.web.js:28
↓ 1 callers
Function
getWebsocketHost
(opts: Options)
src/core/config.ts:103
↓ 1 callers
Function
getWebsocketHostFromCluster
(cluster: string)
src/core/config.ts:110
↓ 1 callers
Method
globalLogWarn
(message: string)
src/core/logger.ts:23
↓ 1 callers
Method
handleCloseEvent
(closeEvent: any)
src/core/connection/connection.ts:150
↓ 1 callers
Method
handleEncryptedEvent
(event: string, data: any)
src/core/channels/encrypted_channel.ts:82
↓ 1 callers
Method
handleEvent
(pusherEvent)
src/core/watchlist.ts:17
↓ 1 callers
Method
handleInternalEvent
(event: PusherEvent)
src/core/channels/presence_channel.ts:74
↓ 1 callers
Method
handleSubscriptionSucceededEvent
(event: PusherEvent)
src/core/channels/presence_channel.ts:97
↓ 1 callers
Method
handleSubscriptionSucceededEvent
(event: PusherEvent)
src/core/channels/channel.ts:90
↓ 1 callers
Function
initializeOnDocumentBody
()
src/runtimes/web/runtime.ts:44
↓ 1 callers
Method
isBufferTooLong
(buffer: any)
src/core/http/http_request.ts:78
↓ 1 callers
Method
isSupported
Returns whether the transport is supported in the browser. * * @returns {Boolean}
src/core/strategies/transport_strategy.ts:39
↓ 1 callers
Method
isXDRSupported
(useTLS?: boolean)
src/runtimes/interface.ts:57
↓ 1 callers
Function
map
(array: any[], f: Function)
src/core/utils/collections.ts:136
↓ 1 callers
Function
mapObject
(object: any, f: Function)
src/core/utils/collections.ts:155
↓ 1 callers
Method
onActivity
()
src/core/http/http_socket.ts:137
↓ 1 callers
Method
onActivity
()
src/core/transports/transport_connection.ts:190
↓ 1 callers
Method
onClose
(closeEvent?: any)
src/core/transports/transport_connection.ts:172
↓ 1 callers
Method
onMessage
(message)
src/core/transports/transport_connection.ts:186
↓ 1 callers
Method
onOpen
(options)
src/core/http/http_socket.ts:116
↓ 1 callers
Method
onOpen
()
src/core/transports/transport_connection.ts:156
↓ 1 callers
Method
onSubscription
Handles subscription data. For internal use only.
src/core/channels/members.ts:48
↓ 1 callers
Function
random
()
src/runtimes/worker/runtime.ts:64
↓ 1 callers
Function
random
()
src/runtimes/web/runtime.ts:163
↓ 1 callers
Function
randomString
(length: number)
src/core/http/http_socket.ts:210
↓ 1 callers
Method
remove
(name?: string, callback?: Function, context?: any)
src/core/events/callback_registry.ts:26
↓ 1 callers
Method
removeAllCallbacks
(names: string[])
src/core/events/callback_registry.ts:62
↓ 1 callers
Method
removeCallback
(names: string[], callback: Function, context: any)
src/core/events/callback_registry.ts:41
↓ 1 callers
Method
removeMember
Adds a member from the collection. For internal use only.
src/core/channels/members.ts:64
↓ 1 callers
Method
removeUnloadListener
(listener: Function)
src/runtimes/interface.ts:44
↓ 1 callers
Function
replaceHost
(url: string, hostname: string)
src/core/http/http_socket.ts:201
↓ 1 callers
Method
send
Sends raw data. * * @param {String} data
src/core/connection/connection.ts:49
↓ 1 callers
Method
sendRaw
For internal use only
src/core/http/http_socket.ts:46
↓ 1 callers
Method
send_event
Sends an event. * * @param {String} name * @param {String} data * @param {String} [channel] * @returns {Boolean} whether message was se
src/core/connection/connection_manager.ts:145
↓ 1 callers
Method
setConnection
(connection)
src/core/connection/connection_manager.ts:338
↓ 1 callers
Method
setUnavailableTimer
()
src/core/connection/connection_manager.ts:226
↓ 1 callers
Method
setup
(PusherClass: { new (key: string, options: any): Pusher; ready(): void; })
src/runtimes/interface.ts:24
↓ 1 callers
Method
shouldRetry
()
src/core/connection/connection_manager.ts:377
↓ 1 callers
Function
shouldUseTLS
(opts: Options)
src/core/config.ts:114
↓ 1 callers
Method
startConnecting
()
src/core/connection/connection_manager.ts:163
↓ 1 callers
Function
storeTransportCache
( usingTLS: boolean, transport: TransportStrategy, latency: number, cacheSkipCount: number, )
src/core/strategies/websocket_prioritized_cached_strategy.ts:127
↓ 1 callers
Function
str
(key, holder)
src/runtimes/web/dom/json2.js:228
↓ 1 callers
Function
subscribe
(pusher, channelName, callback)
spec/javascripts/integration/core/cluster_config_spec.js:25
↓ 1 callers
Method
subscribeAll
()
src/core/pusher.ts:211
↓ 1 callers
Method
unbindListeners
()
src/core/transports/transport_connection.ts:215
↓ 1 callers
Method
unbind_all
()
src/core/events/dispatcher.ts:50
↓ 1 callers
Method
unbind_global
(callback?: Function)
src/core/events/dispatcher.ts:36
↓ 1 callers
Function
utob
(u)
src/core/base64.ts:26
↓ 1 callers
Function
walk
(holder, key)
src/runtimes/web/dom/json2.js:413
Function
FakeWebSocket
(url)
spec/javascripts/unit/isomorphic/transports/transports_spec.js:81
Method
abortRequest
(HTTPRequest: any)
types/src/core/http/request_hooks.d.ts:4
Function
abortRunner
(runner)
src/core/strategies/best_connected_ever_strategy.ts:76
Function
addUnloadListener
(listener: any)
src/runtimes/isomorphic/runtime.ts:58
Function
addUnloadListener
(listener: any)
src/runtimes/web/runtime.ts:143
Method
addUnloadListener
(listener: Function)
types/src/runtimes/interface.d.ts:30
Function
ajax
( context: AbstractRuntime, query: string, authOptions: InternalAuthOptions, authRequestType: AuthRequ
src/runtimes/isomorphic/auth/xhr_auth.ts:15
Function
all
(array: any[], test: Function)
src/core/utils/collections.ts:253
Method
allChannels
()
src/core/pusher.ts:159
Function
any
(array: any[], test: Function)
src/core/utils/collections.ts:234
Function
apply
(array: any[], f: Function, context?: any)
src/core/utils/collections.ts:119
Function
arrayIndexOf
(array: any[], item: any)
src/core/utils/collections.ts:48
Method
authorize
(socketId: string, callback: ChannelAuthorizationCallback)
types/src/core/auth/deprecated_channel_authorizer.d.ts:4
Method
authorize
Authorizes the connection as a member of the channel. * * @param {String} socketId * @param {Function} callback
src/core/channels/presence_channel.ts:28
Method
authorize
Authorizes the connection to use the channel. * * @param {String} socketId * @param {Function} callback
src/core/channels/private_channel.ts:16
Method
bind_global
(callback: Function)
src/core/events/dispatcher.ts:26
Function
build
(testConfig)
spec/javascripts/integration/core/pusher_spec/test_builder.js:28
Function
buildLogSuffix
(key: string)
src/core/utils/url_store.ts:32
Function
buildQueryString
(data: any)
src/core/utils/collections.ts:271
Function
callback
()
spec/javascripts/unit/core/channels/private_channel_spec.js:32
Function
callback
()
spec/javascripts/unit/core_with_runtime/auth/user_authorizer_spec.js:40
Function
callback
()
spec/javascripts/unit/core_with_runtime/auth/channel_authorizer_spec.js:42
Function
callback
()
spec/javascripts/unit/core_with_runtime/auth/deprecated_channel_authorizer_spec.js:34
Method
callbackWrapper
()
src/runtimes/web/dom/script_receiver_factory.ts:38
Function
cb_encode
(ccc)
src/core/base64.ts:30
Function
cb_utob
(c)
src/core/base64.ts:15
Method
cleanup
Cleans up the DOM remains of the script request.
src/runtimes/web/dom/script_request.ts:71
← previous
next →
201–300 of 555, ranked by callers