DefaultServerConnectionConfig

Default implementation of the server connection configuration.

This class provides configuration settings for setting up a server connection, extending the ServerConnectionConfig base class. It initializes the server port configuration to a default value unless explicitly specified.

Parameters

port

The port number on which the server will listen to. Defaults to 8080.

Constructors

Link copied to clipboard
constructor(port: Int = DEFAULT_PORT)

Properties

Link copied to clipboard
val jsonConfig: Json

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. Defaults to 8080;

Functions

Link copied to clipboard
fun appendSerializersModule(module: SerializersModule)

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.