code | type | title | description | order |
---|---|---|---|---|
true |
page |
WebSocketOptions |
KuzzleOptions class documentation |
110 |
This class represents the options usable with the Kuzzle class.
It can be used with the following methods:
This class has a constructor and a constructor by copy.
The port to use to connect.
public int getPort();
public WebSocketOptions setPort(int port)
If we use SSL connection.
public boolean getSsl()
public WebSocketOptions setSsl(boolean ssl)
The duration before the connection timeout.
public int getConnectionTimeout()
public WebSocketOptions setConnectionTimeout(int connectionTimeout)
If the websocket auto reconnects.
public boolean getAutoReconnect()
public WebSocketOptions setAutoReconnect(boolean autoReconnect)
Time between each reconnection attempt.
public long getReconnectionDelay();
public WebSocketOptions setReconnectionDelay(long reconnectionDelay);
Number of attempts to try and reconnect. -1 for infinite attempts until the connection is established again.
public long getReconnectionRetries();
public WebSocketOptions setReconnectionRetries(long reconnectionRetries);