A password string to authenticate with, a buffer containing custom credentials in binary format, a typed array, or a regular array of octets.
The hostname to connect to (default 'localhost'
)
The maximum size of messages that may be received from the server. (default 2147483647
)
The request path used for connections (default /diffusion
)
The port to connect to (default 443
)
The principal name this session should connect with. Used for authentication.
An object of key-value pairs that define the user-defined session properties.
For details of how session properties are used see Session.
Reconnection options. (default true
)
Whether to use secure connections.
The transports to be used for connection establishment. (default "WEBSOCKET"
)
Provide Session configuration options.
Connection:
There are several option values that can be configured to change how Diffusion establishes a connection. These options are used to derive a connection URL in the format: {protocol}://{host}:{port}/{path}. The protocol used is determined by the chosen transports and whether secure connections are enabled.Reconnection:
Reconnection is enabled by default, and accepts several different option values.Transports:
The `transports` property configures how the session should connect. It can be set to either a `string`, or an `array` of strings to provide a transport cascading capability.Properties:
Supplied session properties will be provided to the server when a session is created using this session factory. The supplied properties will be validated during authentication and may be discarded or changed.
The specified properties will be added to any existing properties set for this session factory. If any of the keys have been previously declared then they will be overwritten with the new values.
For details of how session properties are used see Session.