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
↓ 223 callers
Method
emit
(eventName: string, data?: any, metadata?: Metadata)
src/core/events/dispatcher.ts:56
↓ 154 callers
Method
bind
(event_name: string, callback: Function, context?: any)
src/core/pusher.ts:186
↓ 145 callers
Method
connect
(minPriority: number, callback: Function)
src/core/strategies/strategy.ts:5
↓ 80 callers
Method
channel
(name: string)
src/core/pusher.ts:155
↓ 75 callers
Method
send
(payload: any)
src/core/socket.ts:2
↓ 63 callers
Method
handleEvent
Handles a PusherEvent. For internal use only. * * @param {PusherEvent} event
src/core/channels/channel.ts:77
↓ 46 callers
Method
isSupported
()
src/core/strategies/strategy.ts:4
↓ 44 callers
Method
subscribe
(channel_name: string)
src/core/pusher.ts:220
↓ 43 callers
Function
callback
()
spec/javascripts/unit/core/config_spec.js:104
↓ 33 callers
Method
disconnect
()
src/core/pusher.ts:177
↓ 33 callers
Method
get
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 callers
Method
getStrategy
(options: StrategyOptions)
src/core/pusher.ts:88
↓ 30 callers
Method
unsubscribe
(channel_name: string)
src/core/pusher.ts:233
↓ 29 callers
Method
close
(code?: any, reason?: any)
src/core/socket.ts:4
↓ 19 callers
Method
cancelSubscription
Cancels an in progress subscription. For internal use only.
src/core/channels/channel.ts:155
↓ 19 callers
Method
getInitial
(key: string, params: any)
src/core/transports/url_scheme.ts:9
↓ 19 callers
Method
info
(event)
src/core/timeline/timeline.ts:46
↓ 18 callers
Method
callback
(error, handshake)
src/core/connection/connection_manager.ts:164
↓ 17 callers
Method
authorize
(socketId: string, callback: ChannelAuthorizationCallback)
src/core/auth/deprecated_channel_authorizer.ts:10
↓ 17 callers
Method
load
Loads the dependency from CDN. * * @param {String} name * @param {Function} callback
src/runtimes/web/dom/dependency_loader.ts:39
↓ 16 callers
Method
add
Creates or retrieves an existing channel by its name. * * @param {String} name * @param {Pusher} pusher * @return {Channel}
src/core/channels/channels.ts:24
↓ 15 callers
Method
bind
(eventName: string, callback: Function, context?: any)
src/core/events/dispatcher.ts:21
↓ 15 callers
Function
subscribe
(pusher, channelName, callback)
spec/javascripts/integration/core/pusher_spec/test_builder.js:16
↓ 15 callers
Method
trigger
Triggers an event
src/core/channels/channel.ts:52
↓ 14 callers
Function
ChannelAuthorizer
( authOptions: InternalAuthOptions, )
src/core/auth/channel_authorizer.ts:41
↓ 14 callers
Method
bind_global
(callback: Function)
src/core/pusher.ts:196
↓ 14 callers
Method
onChunk
(chunk)
src/core/http/http_socket.ts:81
↓ 13 callers
Method
createConnection
Creates a transport connection. * * @param {String} name * @param {Number} priority * @param {String} key the application key * @param
src/core/transports/transport.ts:46
↓ 13 callers
Method
log
( defaultLoggingFunction: (message: string) => void, ...args: any[] )
src/core/logger.ts:39
↓ 13 callers
Method
unbind
(event_name?: string, callback?: Function, context?: any)
src/core/pusher.ts:191
↓ 12 callers
Method
unbind
(eventName?: string, callback?: Function, context?: any)
src/core/events/dispatcher.ts:31
↓ 11 callers
Method
create
(callback: Function)
src/runtimes/web/dom/script_receiver_factory.ts:30
↓ 11 callers
Method
getSocket
(url: string, options?: any)
src/core/transports/transport_hooks.ts:12
↓ 11 callers
Function
getTransport
(hooks, key, options)
spec/javascripts/unit/core/transports/transport_connection_spec.js:10
↓ 11 callers
Method
start
(payload?: any)
src/core/http/http_request.ts:23
↓ 10 callers
Method
cleanup
Cleans up the DOM remains of the JSONP request.
src/runtimes/web/dom/jsonp_request.ts:47
↓ 10 callers
Method
error
(event)
src/core/timeline/timeline.ts:42
↓ 9 callers
Method
changeState
(state: string, params?: any)
src/core/transports/transport_connection.ts:227
↓ 9 callers
Function
getErrorMessage
(code, reason)
spec/javascripts/unit/core/connection/protocol_spec.js:120
↓ 9 callers
Method
onClose
For internal use only
src/core/http/http_socket.ts:69
↓ 9 callers
Method
warn
(...args: any[])
src/core/logger.ts:9
↓ 8 callers
Method
abortRequest
(HTTPRequest)
src/core/http/request_hooks.ts:6
↓ 8 callers
Method
debug
(...args: any[])
src/core/logger.ts:5
↓ 8 callers
Function
decode_base64
(data)
integration_tests_server/index.js:4
↓ 8 callers
Method
error
(...args: any[])
src/core/logger.ts:13
↓ 8 callers
Function
f
(n)
src/runtimes/web/dom/json2.js:169
↓ 8 callers
Method
getPath
(key: string, options: any)
src/core/transports/url_scheme.ts:10
↓ 8 callers
Method
onopen
(evt?: any)
src/core/socket.ts:7
↓ 8 callers
Method
ping
()
src/core/socket.ts:3
↓ 7 callers
Method
debug
(event)
src/core/timeline/timeline.ts:50
↓ 7 callers
Function
defineTransportStrategy
( name: string, type: string, priority: number, options: StrategyOptions, manager?: Transp
src/runtimes/web/default_strategy.ts:28
↓ 7 callers
Function
delay
(timeMs)
spec/javascripts/integration/core/pusher_spec/test_builder.js:24
↓ 7 callers
Method
find
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 callers
Method
retryIn
(delay)
src/core/connection/connection_manager.ts:208
↓ 7 callers
Method
send_event
(event_name: string, data: any, channel?: string)
src/core/pusher.ts:245
↓ 7 callers
Method
switchCluster
* 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 callers
Function
UserAuthenticator
( authOptions: InternalAuthOptions, )
src/core/auth/user_authenticator.ts:39
↓ 6 callers
Method
createXHR
()
src/runtimes/interface.ts:32
↓ 6 callers
Method
isAlive
Returns whether the transport has any lives left. * * @returns {Boolean}
src/core/transports/transport_manager.ts:44
↓ 6 callers
Method
open
( method: string, url: string, async?: boolean, user?: string, password?: string, )
src/core/http/ajax.ts:2
↓ 6 callers
Method
reportDeath
Takes one life from the transport.
src/core/transports/transport_manager.ts:49
↓ 5 callers
Function
defineTransport
( config: Config, name: string, type: string, priority: number, options: StrategyOptions, manager?
src/core/strategies/strategy_builder.ts:13
↓ 5 callers
Function
flatPromise
()
src/core/utils/flat_promise.ts:1
↓ 5 callers
Method
getRoot
Returns a root URL for pusher-js CDN. * * @returns {String}
src/runtimes/web/dom/dependency_loader.ts:73
↓ 5 callers
Method
getXHRAPI
()
src/runtimes/interface.ts:42
↓ 5 callers
Method
isEmpty
()
src/core/timeline/timeline.ts:54
↓ 5 callers
Method
isUsingTLS
()
src/core/connection/connection_manager.ts:159
↓ 5 callers
Function
objectApply
(object: any, f: Function)
src/core/utils/collections.ts:75
↓ 5 callers
Method
onclose
(closeEvent: any)
src/core/socket.ts:9
↓ 5 callers
Method
onerror
(error: any)
src/core/socket.ts:8
↓ 5 callers
Method
remove
Removes a channel from the map. * * @param {String} name
src/core/channels/channels.ts:52
↓ 5 callers
Method
reset
Resets the collection to the initial state. For internal use only.
src/core/channels/members.ts:74
↓ 5 callers
Method
send
(payload?: any)
src/core/http/ajax.ts:9
↓ 5 callers
Method
signin
()
src/core/pusher.ts:253
↓ 5 callers
Function
testSupportsStrategy
(strategy: Strategy)
src/runtimes/web/default_strategy.ts:15
↓ 5 callers
Method
updateState
(newState: string, data?: any)
src/core/connection/connection_manager.ts:359
↓ 4 callers
Method
_cleanup
()
src/core/user.ts:150
↓ 4 callers
Method
buildTimelineMessage
(message)
src/core/transports/transport_connection.ts:238
↓ 4 callers
Function
canRunTwoConnections
(transport)
spec/javascripts/integration/core/pusher_spec/test_builder.js:9
↓ 4 callers
Function
defineTransportStrategy
( name: string, type: string, priority: number, options: StrategyOptions, manager?: Transp
src/runtimes/isomorphic/default_strategy.ts:28
↓ 4 callers
Method
finish
(action: string, params: any)
src/core/connection/handshake/index.ts:85
↓ 4 callers
Method
getAuthorizers
()
src/runtimes/interface.ts:29
↓ 4 callers
Method
getWebSocketAPI
()
src/runtimes/interface.ts:41
↓ 4 callers
Method
isXHRSupported
()
src/runtimes/interface.ts:47
↓ 4 callers
Method
onFinished
(Socket, Status)
src/core/http/socket_hooks.ts:8
↓ 4 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.ts:60
↓ 4 callers
Method
setRequestHeader
(key: string, value: string)
src/core/http/ajax.ts:10
↓ 4 callers
Method
supportsPing
Checks whether the transport supports the ping/pong API. * * @return {Boolean}
src/core/transports/transport_connection.ts:86
↓ 3 callers
Function
callback
()
spec/javascripts/unit/core/channels/encrypted_channel_spec.js:47
↓ 3 callers
Method
createPollingSocket
(url: string)
src/core/http/http_factory.ts:9
↓ 3 callers
Method
createStreamingSocket
(url: string)
src/core/http/http_factory.ts:8
↓ 3 callers
Function
decode
(data)
integration_tests_server/index.js:8
↓ 3 callers
Method
each
Calls back for each member in unspecified order. * * @param {Function} callback
src/core/channels/members.ts:36
↓ 3 callers
Method
generateUniqueID
()
src/core/timeline/timeline.ts:86
↓ 3 callers
Method
getDocument
()
src/runtimes/interface.ts:53
↓ 3 callers
Method
getDocument
()
src/runtimes/web/browser.ts:14
↓ 3 callers
Function
getGenericPath
(key: string, queryString?: string)
src/core/transports/url_schemes.ts:14
↓ 3 callers
Function
getGenericURL
( baseScheme: string, params: URLSchemeParams, path: string, )
src/core/transports/url_schemes.ts:4
↓ 3 callers
Method
getLocalStorage
()
src/runtimes/interface.ts:30
↓ 3 callers
Method
getReceiveURL
(url: URLLocation, session: string)
src/core/http/socket_hooks.ts:5
next →
1–100 of 555, ranked by callers