Package | Description |
---|---|
com.pusher.client |
Classes for connecting to Pusher, configuring the
Pusher instance and authenticating subscriptions. |
com.pusher.client.util |
Contains helper classes.
|
Modifier and Type | Method and Description |
---|---|
PusherOptions |
PusherOptions.setActivityTimeout(long activityTimeout)
The number of milliseconds of inactivity at which a "ping" will be
triggered to check the connection.
|
PusherOptions |
PusherOptions.setAuthorizer(Authorizer authorizer)
Sets the authorizer to be used when authenticating private and presence
channels.
|
PusherOptions |
PusherOptions.setCluster(String cluster) |
PusherOptions |
PusherOptions.setEncrypted(boolean encrypted)
Sets whether an encrypted (SSL) connection should be used when connecting to
Pusher.
|
PusherOptions |
PusherOptions.setHost(String host)
The host to which connections will be made.
|
PusherOptions |
PusherOptions.setPongTimeout(long pongTimeout)
The number of milliseconds after a "ping" is sent that the client will
wait to receive a "pong" response from the server before considering the
connection broken and triggering a transition to the disconnected state.
|
PusherOptions |
PusherOptions.setWsPort(int wsPort)
The port to which unencrypted connections will be made.
|
PusherOptions |
PusherOptions.setWssPort(int wssPort)
The port to which encrypted connections will be made.
|
Constructor and Description |
---|
Pusher(String apiKey,
PusherOptions pusherOptions)
Creates a new instance of Pusher.
|
Modifier and Type | Method and Description |
---|---|
InternalConnection |
Factory.getConnection(String apiKey,
PusherOptions options) |
Copyright © 2018 Pusher. All rights reserved.