ServerConnectionConfig

abstract class ServerConnectionConfig(val host: String, val port: Int, val awaitInitialConnection: Boolean, val awaitInitialConnectionTimeout: Duration) : ConnectionConfig(source)

Configuration class for setting up a server connection.

Inheritors

Constructors

Link copied to clipboard
constructor(host: String, port: Int, awaitInitialConnection: Boolean, awaitInitialConnectionTimeout: Duration)

Properties

Link copied to clipboard

Indicates whether the server waits for an initial connection before continuing.

Link copied to clipboard

The timeout duration for awaiting the initial client connection.

Link copied to clipboard

The host on which the server will listen to;

Link copied to clipboard

Provides access to the current JSON serialization and deserialization configuration.

Link copied to clipboard
val port: Int

The port number on which the server will listen to;

Functions

Link copied to clipboard

Appends the specified serializers module to the existing JSON configuration. This method allows dynamic addition of custom serialization and deserialization logic by merging the provided module with the current serializers module.