ServerConnectionConfig

abstract class ServerConnectionConfig(val port: Int = DEFAULT_PORT) : ConnectionConfig(source)

Configuration class for setting up a server connection.

Inheritors

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.