Network Configuration
NetworkConfig
class allows to define basic network configuration like encoding or serializer.
Server
or Client
instance can be created with custom configuration by passing NetworkConfig
instance to their constructor.
To change default network configuration:
Encoding
By default all text messages are encoded using UTF8
.
Serializer
By default Json.NET is used for serialization, with following implementation: