MCPcopy Create free account

hub / github.com/pusher/pusher-js / functions

Functions555 in github.com/pusher/pusher-js

↓ 223 callersMethodemit
(eventName: string, data?: any, metadata?: Metadata)
src/core/events/dispatcher.ts:56
↓ 154 callersMethodbind
(event_name: string, callback: Function, context?: any)
src/core/pusher.ts:186
↓ 145 callersMethodconnect
(minPriority: number, callback: Function)
src/core/strategies/strategy.ts:5
↓ 80 callersMethodchannel
(name: string)
src/core/pusher.ts:155
↓ 75 callersMethodsend
(payload: any)
src/core/socket.ts:2
↓ 63 callersMethodhandleEvent
Handles a PusherEvent. For internal use only. * * @param {PusherEvent} event
src/core/channels/channel.ts:77
↓ 46 callersMethodisSupported
()
src/core/strategies/strategy.ts:4
↓ 44 callersMethodsubscribe
(channel_name: string)
src/core/pusher.ts:220
↓ 43 callersFunctioncallback
()
spec/javascripts/unit/core/config_spec.js:104
↓ 33 callersMethoddisconnect
()
src/core/pusher.ts:177
↓ 33 callersMethodget
Returns member's info for given id. * * Resulting object containts two fields - id and info. * * @param {Number} id * @return {Object}
src/core/channels/members.ts:21
↓ 31 callersMethodgetStrategy
(options: StrategyOptions)
src/core/pusher.ts:88
↓ 30 callersMethodunsubscribe
(channel_name: string)
src/core/pusher.ts:233
↓ 29 callersMethodclose
(code?: any, reason?: any)
src/core/socket.ts:4
↓ 19 callersMethodcancelSubscription
Cancels an in progress subscription. For internal use only.
src/core/channels/channel.ts:155
↓ 19 callersMethodgetInitial
(key: string, params: any)
src/core/transports/url_scheme.ts:9
↓ 19 callersMethodinfo
(event)
src/core/timeline/timeline.ts:46
↓ 18 callersMethodcallback
(error, handshake)
src/core/connection/connection_manager.ts:164
↓ 17 callersMethodauthorize
(socketId: string, callback: ChannelAuthorizationCallback)
src/core/auth/deprecated_channel_authorizer.ts:10
↓ 17 callersMethodload
Loads the dependency from CDN. * * @param {String} name * @param {Function} callback
src/runtimes/web/dom/dependency_loader.ts:39
↓ 16 callersMethodadd
Creates or retrieves an existing channel by its name. * * @param {String} name * @param {Pusher} pusher * @return {Channel}
src/core/channels/channels.ts:24
↓ 15 callersMethodbind
(eventName: string, callback: Function, context?: any)
src/core/events/dispatcher.ts:21
↓ 15 callersFunctionsubscribe
(pusher, channelName, callback)
spec/javascripts/integration/core/pusher_spec/test_builder.js:16
↓ 15 callersMethodtrigger
Triggers an event
src/core/channels/channel.ts:52
↓ 14 callersFunctionChannelAuthorizer
( authOptions: InternalAuthOptions, )
src/core/auth/channel_authorizer.ts:41
↓ 14 callersMethodbind_global
(callback: Function)
src/core/pusher.ts:196
↓ 14 callersMethodonChunk
(chunk)
src/core/http/http_socket.ts:81
↓ 13 callersMethodcreateConnection
Creates a transport connection. * * @param {String} name * @param {Number} priority * @param {String} key the application key * @param
src/core/transports/transport.ts:46
↓ 13 callersMethodlog
( defaultLoggingFunction: (message: string) => void, ...args: any[] )
src/core/logger.ts:39
↓ 13 callersMethodunbind
(event_name?: string, callback?: Function, context?: any)
src/core/pusher.ts:191
↓ 12 callersMethodunbind
(eventName?: string, callback?: Function, context?: any)
src/core/events/dispatcher.ts:31
↓ 11 callersMethodcreate
(callback: Function)
src/runtimes/web/dom/script_receiver_factory.ts:30
↓ 11 callersMethodgetSocket
(url: string, options?: any)
src/core/transports/transport_hooks.ts:12
↓ 11 callersFunctiongetTransport
(hooks, key, options)
spec/javascripts/unit/core/transports/transport_connection_spec.js:10
↓ 11 callersMethodstart
(payload?: any)
src/core/http/http_request.ts:23
↓ 10 callersMethodcleanup
Cleans up the DOM remains of the JSONP request.
src/runtimes/web/dom/jsonp_request.ts:47
↓ 10 callersMethoderror
(event)
src/core/timeline/timeline.ts:42
↓ 9 callersMethodchangeState
(state: string, params?: any)
src/core/transports/transport_connection.ts:227
↓ 9 callersFunctiongetErrorMessage
(code, reason)
spec/javascripts/unit/core/connection/protocol_spec.js:120
↓ 9 callersMethodonClose
For internal use only
src/core/http/http_socket.ts:69
↓ 9 callersMethodwarn
(...args: any[])
src/core/logger.ts:9
↓ 8 callersMethodabortRequest
(HTTPRequest)
src/core/http/request_hooks.ts:6
↓ 8 callersMethoddebug
(...args: any[])
src/core/logger.ts:5
↓ 8 callersFunctiondecode_base64
(data)
integration_tests_server/index.js:4
↓ 8 callersMethoderror
(...args: any[])
src/core/logger.ts:13
↓ 8 callersFunctionf
(n)
src/runtimes/web/dom/json2.js:169
↓ 8 callersMethodgetPath
(key: string, options: any)
src/core/transports/url_scheme.ts:10
↓ 8 callersMethodonopen
(evt?: any)
src/core/socket.ts:7
↓ 8 callersMethodping
()
src/core/socket.ts:3
↓ 7 callersMethoddebug
(event)
src/core/timeline/timeline.ts:50
↓ 7 callersFunctiondefineTransportStrategy
( name: string, type: string, priority: number, options: StrategyOptions, manager?: Transp
src/runtimes/web/default_strategy.ts:28
↓ 7 callersFunctiondelay
(timeMs)
spec/javascripts/integration/core/pusher_spec/test_builder.js:24
↓ 7 callersMethodfind
Finds a channel by its name. * * @param {String} name * @return {Channel} channel or null if it doesn't exist
src/core/channels/channels.ts:44
↓ 7 callersMethodretryIn
(delay)
src/core/connection/connection_manager.ts:208
↓ 7 callersMethodsend_event
(event_name: string, data: any, channel?: string)
src/core/pusher.ts:245
↓ 7 callersMethodswitchCluster
* Allows you to switch Pusher cluster without * losing all the channels/subscription binding * as this is internally managed by the SDK.
src/core/pusher.ts:147
↓ 6 callersFunctionUserAuthenticator
( authOptions: InternalAuthOptions, )
src/core/auth/user_authenticator.ts:39
↓ 6 callersMethodcreateXHR
()
src/runtimes/interface.ts:32
↓ 6 callersMethodisAlive
Returns whether the transport has any lives left. * * @returns {Boolean}
src/core/transports/transport_manager.ts:44
↓ 6 callersMethodopen
( method: string, url: string, async?: boolean, user?: string, password?: string, )
src/core/http/ajax.ts:2
↓ 6 callersMethodreportDeath
Takes one life from the transport.
src/core/transports/transport_manager.ts:49
↓ 5 callersFunctiondefineTransport
( config: Config, name: string, type: string, priority: number, options: StrategyOptions, manager?
src/core/strategies/strategy_builder.ts:13
↓ 5 callersFunctionflatPromise
()
src/core/utils/flat_promise.ts:1
↓ 5 callersMethodgetRoot
Returns a root URL for pusher-js CDN. * * @returns {String}
src/runtimes/web/dom/dependency_loader.ts:73
↓ 5 callersMethodgetXHRAPI
()
src/runtimes/interface.ts:42
↓ 5 callersMethodisEmpty
()
src/core/timeline/timeline.ts:54
↓ 5 callersMethodisUsingTLS
()
src/core/connection/connection_manager.ts:159
↓ 5 callersFunctionobjectApply
(object: any, f: Function)
src/core/utils/collections.ts:75
↓ 5 callersMethodonclose
(closeEvent: any)
src/core/socket.ts:9
↓ 5 callersMethodonerror
(error: any)
src/core/socket.ts:8
↓ 5 callersMethodremove
Removes a channel from the map. * * @param {String} name
src/core/channels/channels.ts:52
↓ 5 callersMethodreset
Resets the collection to the initial state. For internal use only.
src/core/channels/members.ts:74
↓ 5 callersMethodsend
(payload?: any)
src/core/http/ajax.ts:9
↓ 5 callersMethodsignin
()
src/core/pusher.ts:253
↓ 5 callersFunctiontestSupportsStrategy
(strategy: Strategy)
src/runtimes/web/default_strategy.ts:15
↓ 5 callersMethodupdateState
(newState: string, data?: any)
src/core/connection/connection_manager.ts:359
↓ 4 callersMethod_cleanup
()
src/core/user.ts:150
↓ 4 callersMethodbuildTimelineMessage
(message)
src/core/transports/transport_connection.ts:238
↓ 4 callersFunctioncanRunTwoConnections
(transport)
spec/javascripts/integration/core/pusher_spec/test_builder.js:9
↓ 4 callersFunctiondefineTransportStrategy
( name: string, type: string, priority: number, options: StrategyOptions, manager?: Transp
src/runtimes/isomorphic/default_strategy.ts:28
↓ 4 callersMethodfinish
(action: string, params: any)
src/core/connection/handshake/index.ts:85
↓ 4 callersMethodgetAuthorizers
()
src/runtimes/interface.ts:29
↓ 4 callersMethodgetWebSocketAPI
()
src/runtimes/interface.ts:41
↓ 4 callersMethodisXHRSupported
()
src/runtimes/interface.ts:47
↓ 4 callersMethodonFinished
(Socket, Status)
src/core/http/socket_hooks.ts:8
↓ 4 callersMethodsend_event
Sends an event. * * @param {String} name * @param {String} data * @param {String} [channel] * @returns {Boolean} whether message was se
src/core/connection/connection.ts:60
↓ 4 callersMethodsetRequestHeader
(key: string, value: string)
src/core/http/ajax.ts:10
↓ 4 callersMethodsupportsPing
Checks whether the transport supports the ping/pong API. * * @return {Boolean}
src/core/transports/transport_connection.ts:86
↓ 3 callersFunctioncallback
()
spec/javascripts/unit/core/channels/encrypted_channel_spec.js:47
↓ 3 callersMethodcreatePollingSocket
(url: string)
src/core/http/http_factory.ts:9
↓ 3 callersMethodcreateStreamingSocket
(url: string)
src/core/http/http_factory.ts:8
↓ 3 callersFunctiondecode
(data)
integration_tests_server/index.js:8
↓ 3 callersMethodeach
Calls back for each member in unspecified order. * * @param {Function} callback
src/core/channels/members.ts:36
↓ 3 callersMethodgenerateUniqueID
()
src/core/timeline/timeline.ts:86
↓ 3 callersMethodgetDocument
()
src/runtimes/interface.ts:53
↓ 3 callersMethodgetDocument
()
src/runtimes/web/browser.ts:14
↓ 3 callersFunctiongetGenericPath
(key: string, queryString?: string)
src/core/transports/url_schemes.ts:14
↓ 3 callersFunctiongetGenericURL
( baseScheme: string, params: URLSchemeParams, path: string, )
src/core/transports/url_schemes.ts:4
↓ 3 callersMethodgetLocalStorage
()
src/runtimes/interface.ts:30
↓ 3 callersMethodgetReceiveURL
(url: URLLocation, session: string)
src/core/http/socket_hooks.ts:5
next →1–100 of 555, ranked by callers