API reference
API reference
Select your platform
No SDKs available
No versions available

WitWebSocketSettings Class

All wit specific settings required by a web socket client in order to connect to a server

Constructors

WitWebSocketSettings ( configuration )
Constructor that takes in configuration
Signature
Meta.Voice.Net.WebSockets.WitWebSocketSettings.WitWebSocketSettings(IWitRequestConfiguration configuration)
Parameters

Fields

RequestTimeoutMs : int
Request timeout in milliseconds
Signature
int Meta.Voice.Net.WebSockets.WitWebSocketSettings.RequestTimeoutMs

Properties

Configuration : IWitRequestConfiguration
[Get]
The configuration used for wit web socket communication
Signature
IWitRequestConfiguration Meta.Voice.Net.WebSockets.WitWebSocketSettings.Configuration
ReconnectAttempts : int
[Get][Set]
The total amount of reconnects that will be attempted if disconnected from the server. If 0, it will not attempt to reconnect. If -1, it will continuously attempt to reconnect.
Signature
int Meta.Voice.Net.WebSockets.WitWebSocketSettings.ReconnectAttempts
ReconnectInterval : float
[Get][Set]
The interval in seconds between reconnects when disconnected
Signature
float Meta.Voice.Net.WebSockets.WitWebSocketSettings.ReconnectInterval
ServerConnectionTimeoutMs : int
[Get][Set]
The interval in seconds before a connection is timed out
Signature
int Meta.Voice.Net.WebSockets.WitWebSocketSettings.ServerConnectionTimeoutMs
ServerUrl : string
[Get][Set]
The url to connect with on client.Connect()
Signature
string Meta.Voice.Net.WebSockets.WitWebSocketSettings.ServerUrl
VerboseJsonLogging : bool
[Get][Set]
Option for logging every uploaded and downloaded json chunk
Signature
bool Meta.Voice.Net.WebSockets.WitWebSocketSettings.VerboseJsonLogging