Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Latest commit

 

History

History
74 lines (50 loc) · 1.39 KB

File metadata and controls

74 lines (50 loc) · 1.39 KB
code type title description order
true
page
WebSocketOptions
KuzzleOptions class documentation
110

WebSocketOptions

This class represents the options usable with the Kuzzle class.

It can be used with the following methods:

Constructor

This class has a constructor and a constructor by copy.

Getters and setters

port

The port to use to connect.

public int getPort();
public WebSocketOptions setPort(int port)

ssl

If we use SSL connection.

public boolean getSsl()
public WebSocketOptions setSsl(boolean ssl)

connectionTimeout

The duration before the connection timeout.

public int getConnectionTimeout()
public WebSocketOptions setConnectionTimeout(int connectionTimeout)

autoReconnect

If the websocket auto reconnects.

public boolean getAutoReconnect()
public WebSocketOptions setAutoReconnect(boolean autoReconnect)

reconnectionDelay

Time between each reconnection attempt.

public long getReconnectionDelay();
public WebSocketOptions setReconnectionDelay(long reconnectionDelay);

reconnectionRetries

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);